0
Why my program is giving no output
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.
0
CarrieForle ,means my logic and ode is correct ,?due to the sololearn code playground it is not working
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.