New course! Every coder should learn Generative AI!
Try a free lesson0
C++ If statement isn’t working. Help please!
1 Answer
+ 2
If statement is working. There is no integer i for each condition i*i*i ==270 will be true (There is no integer cubic root of 270).
Did you mean if(i*i*i == 27) ?