Is Armstrong No

Question https://online.codingblocks.com/app/player/198842/content/183689/4790/code-challenge
Code
https://ide.codingblocks.com/s/473263
Sir, I am not able to rectify the mistake in my code.
So please can you help me.

Your Mistakes

  1. image

you have to use an another variable because after first iteration p will become zero

do it like this
image
so that p will not destroy and available for other rounds as well

  1. you forgot to divide i with 10

i have corrected all these mistakes
Modified code