0

When I input an integer and it continues output that number.I don't know why.Anybody helps me!!!

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

26th Sep 2020, 8:11 AM
Sherry_Lim
Sherry_Lim - avatar
2 Antworten
+ 8
Shirt Don't know what exactly you're trying to do but.. If I input 2 101 it doesn't continuously output number ) Actually your while loop returns false only if q is greater than 100. So when you give any value of q which is less then 100 the loop executes infinitely.
26th Sep 2020, 8:32 AM
Minho
Minho - avatar
0
oops I just input with 1,101 and it loops But when I use 1 101 it doesn't loop . I may know why:P
26th Sep 2020, 11:01 AM
Sherry_Lim
Sherry_Lim - avatar