+ 23

Why there's no output for the range? [solved]

Problem in output https://code.sololearn.com/cyjvGyPMYt2w/?ref=app So if you enter: "No 253" it outputs that it is an Armstrong number but if you try "range 150 155" for example, 153 is no more there....why? (and actually no other Armstrong number is there for the range I believe)

26th Jun 2018, 7:24 AM
Uni
Uni - avatar
3 Antworten
+ 4
You need to initialize sum to 0 in the function strong().
26th Jun 2018, 7:33 AM
Solo Wanderer 4315
Solo Wanderer 4315 - avatar
+ 17
Kinshuk Vasisht thank you it was so silly.......😤😠😥😧 Thank you very much ! 🙏🙏
26th Jun 2018, 7:40 AM
Uni
Uni - avatar
0
1, za
28th Jun 2018, 6:07 AM
ankit
ankit - avatar