+ 2

Problem - Program Skipping Output

I have recently made a code to print Wobbly Numbers for a challenge linked in the code's comments. The code prints all the rest of the numbers, but for the case i=1, j=0, no number is printed. Why is no number printed? Please help me. https://code.sololearn.com/cKc8o8Qug92d/?ref=app

19th May 2018, 4:04 PM
Solo Wanderer 4315
Solo Wanderer 4315 - avatar
3 Respuestas
+ 3
After setting up fmt, you need to assign it to s. For i=1,j=0, it is uninitialized.
19th May 2018, 7:01 PM
John Wells
John Wells - avatar
+ 3
Kinshuk Vasisht we all do it at some point. You're welcome!
20th May 2018, 2:24 AM
John Wells
John Wells - avatar
+ 1
John Wells Thank you very much! That was quite stupid of me.
20th May 2018, 2:22 AM
Solo Wanderer 4315
Solo Wanderer 4315 - avatar