Is armstrong code is giving wrong output

hi @Anku47 firstly you are not returning anything, so the return type should be void.
secondly, number will become 0 in the while loop, so comparing sum and number will always return false