0
Is this condition right? Whether 0>0 is true
int I=0 while (I>0) {}
4 Antworten
+ 10
I'm pretty sure zero is not larger than zero, so 0>0 is false.
+ 2
say you have zero cookies, and so does your friend. do you have more cookies?
😄💟🍪
cout << "🍪"
+ 1
0 > 0 is not true, it's false.
So, the code in the while block will not be executed.
+ 1
It is false.