Armstrong

Suraj Ghimire
37 Posts

WAP to find out if the number is Armstrong number of not.

A number is said to be armstrong if sum of cube of each digit gives you the same number.

Eg 153 is armstrong as 1^3 + 5^3 +3^3 = 1 + 125+ 27 = 153

Published By : Suraj Ghimire
Please write comments if you find anything incorrect, or you want to share more information about the topic discussed above.

Comments