while loop | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

while loop

i am curious about the infinite condition in the while loop, is there any way to weaponize this like a sort of buffer overflow or something.pls pm me if you have any idea https://code.sololearn.com/cgJUiSQwVvPO/?ref=app

25th Sep 2020, 5:35 PM
Th3hunt3r
Th3hunt3r - avatar
1 Answer
+ 3
for a while loop we must add a condition to stop it . otherwise it runs continuously and overflow occurs. In your programe you have to add a condition to stop the loop kind of break statement depending on number of times you want the output
25th Sep 2020, 7:42 PM
Kavya
Kavya - avatar