24th Mar 2021, 10:15 AM
Akshat
3 Answers
+ 3
Your code runs infinitely because of the goto statement. When the loop ends it goes back to start. I guess you did this intentionally, but infinite loop won't work in SoloLearn code playground. Even if you remove it, your code still doesn't output because it takes too long to finish. Remove the inner loop will make it work. It might not output what you expect, but at least it outputs.
24th Mar 2021, 10:48 AM
你知道規則,我也是
你知道規則,我也是 - avatar
0
CarrieForle ,means my logic and ode is correct ,?due to the sololearn code playground it is not working
24th Mar 2021, 10:55 AM
Akshat
0
SoloLearn playground and many other online compilers just don't support infinity loop as it will be impossible to exit the program without real-time input. I can't judge if your logic is correct from your code since I don't know what you want to do and achieve with it. Only one thing is clear that the infinity loop causes your code not run in SoloLearn.
24th Mar 2021, 11:56 AM
你知道規則,我也是
你知道規則,我也是 - avatar