+ 2

Can anyone say why the pgm is not getting executed

https://code.sololearn.com/cDB4vVVyrn7V/?ref=app

16th Dec 2018, 2:54 PM
Jahnavi Vempati
Jahnavi Vempati - avatar
2 Réponses
+ 2
Thanks
16th Dec 2018, 3:36 PM
Jahnavi Vempati
Jahnavi Vempati - avatar
+ 1
Two main problems: 1. Variable “dec” is used but never declared. 2. The for loop in line 31 is infinite. The value of “i” never reaches 0.
16th Dec 2018, 3:28 PM
Diego
Diego - avatar