Please tell why the code is giving no output. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Please tell why the code is giving no output.

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

26th Apr 2020, 10:39 AM
Neeraj Agarwal
Neeraj Agarwal - avatar
2 Answers
+ 2
You have created an infinite while loop. It's possible that this has caused SL not to print anything when this happens. If you make the loop finite (while x<10) for example, it outputs fine.
26th Apr 2020, 11:06 AM
Russ
Russ - avatar
+ 1
Thanks..
26th Apr 2020, 11:12 AM
Neeraj Agarwal
Neeraj Agarwal - avatar