+ 2

can find at least 2 differences between != and < in a loop "while"? Help

https://code.sololearn.com/cRwRLliD7KPC/?ref=app

19th Aug 2020, 2:01 PM
иван
иван - avatar
2 Réponses
+ 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
19th Aug 2020, 2:37 PM
Sangeetha
0
No difference ....like, a ++ and a+=1 Both same
19th Aug 2020, 2:29 PM
Md. Mursalatul Islam Pallob
Md. Mursalatul Islam Pallob - avatar