+ 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
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