Is armstrong number

why this code is giving only false as output
when given correct number also?

@luckykhobragade initialise sum with 0

it works, thankyou for help.

1 Like

@luckykhobragade please mark your doubt as resolved