+ 1

Help me improve the output?

Suggest some tips. https://code.sololearn.com/c0iWIuByT3VN/?ref=app

7th Sep 2019, 10:52 AM
Piyush Srivastava
Piyush Srivastava - avatar
2 odpowiedzi
+ 2
You print the result in the loop, so it gets (partially) printed each time. Just move that line below the braces of the loop.
7th Sep 2019, 11:51 AM
HonFu
HonFu - avatar
+ 1
Thanks
7th Sep 2019, 12:18 PM
Piyush Srivastava
Piyush Srivastava - avatar