0

C++ If statement isn’t working. Help please!

https://code.sololearn.com/cXAP3w17r04T/#cpp

1st Apr 2020, 4:47 PM
Timothy Ricks
Timothy Ricks - avatar
2 Answers
+ 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) ?
1st Apr 2020, 4:59 PM
andriy kan
andriy kan - avatar