0
What is the output of this code given in description??
X=0 while X<=20: Print(X) X+=2
2 odpowiedzi
+ 9
Hello
Mostly this will be an infinite loop as the variable X is incremented outside the while loop body. So every time 0 will be printed infinitely.
And one more thing, your print statement should be in complete lowercase as it is case-sensitive, else it will produce an error. So this code has no meaning.
Hope this helps !!!
+ 1
this is not correct syntax for a loop..it will just print 0 for ever..the x+=2 is meaningless as its not called in any way to the loop above it