0

Why it takes input twice even if while loop's condition is false

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

5th Nov 2021, 10:06 AM
Saumya Mishra
Saumya Mishra - avatar
4 Answers
+ 1
The condition isn't false. You recursively call the same function, which in turn, asks for more input. It won't end This is probably what you're lookin for https://code.sololearn.com/cFDP1ZoFRW8T/?ref=app
5th Nov 2021, 10:08 AM
Slick
Slick - avatar
+ 1
I just tried it with no input, it prints out "works" then when it see's there is no input, skips the while loop. What's wrong?
5th Nov 2021, 10:40 AM
Slick
Slick - avatar
0
Slick if I entered no as input then why it asks another time ,loop should terminate at the first time
5th Nov 2021, 10:38 AM
Saumya Mishra
Saumya Mishra - avatar
0
Why is my input coming twice
30th Mar 2023, 3:11 AM
Gaming Bro yt
Gaming Bro yt - avatar