30th Oct 2022, 9:39 AM
Fazal Ansari
Fazal Ansari - avatar
1 Answer
+ 1
just remove the system("clear") and sleep() function and it works https://code.sololearn.com/c7zMDZKewbtP/?ref=app Why it does not works ? Ans :- Because sololearn is not continuously logging the console output but simply pasting the console output until the code ends or it sleeps. I hope you understand that your is not wrong because it runs perfect on a pc.
30th Oct 2022, 10:55 AM
Abhay
Abhay - avatar