+ 2
can find at least 2 differences between != and < in a loop "while"? Help
2 odpowiedzi
+ 1
there is alot difference
1. x<10
this prints '#x27; until 9 #0 to 9
2 .x!=10
this prints"quot; at every number except 10 (once try this by initializing x=11 then you will get up to infinte)
just try yourself by taking x=0 and 5 and 9 and 10 and 11 and any number >10
I hope it helps u
0
No difference ....like,
a ++ and a+=1
Both same