True or false?

I have a couple of questions but I will atart with this one.
My answer is FALSE, because seems to me that this loop will end when j = 20.
I need to confirm this with you guys and if Im wrong please tell me why.
BTW.. please tell me if the sintax is correct
Thanks !


The following while loops terminates when j > 20

j=0;

while (j<20)

j++;


a.- TRUE
b.- FALSE
Last edited on
Yup, that's right.

As for the syntax, you never gave j a type. You probably meant:
 
int j = 0;
Thank you very much !
Topic archived. No new replies allowed.