Help me find the bug in this code | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Help me find the bug in this code

Bug in square root code https://code.sololearn.com/cSU9Vj3Qt9HM/?ref=app

2nd Jul 2020, 12:25 AM
Peter Paulinus Polycarp
Peter Paulinus Polycarp - avatar
2 Answers
+ 3
While statement is causing infinite loop
2nd Jul 2020, 12:37 AM
♡Addy♡
♡Addy♡ - avatar
+ 3
The problem is that you have an infinite loop causing the program to take input infinitely. Due the method of playground to take input an error occurred.
2nd Jul 2020, 12:39 AM
Seb TheS
Seb TheS - avatar