Program for Armstrong Number in C

Here you will get program for armstrong number in C.

Armstrong number is n digits number whose sum of digits raised to power n is equal to itself.

For example:

371 is armstrong number because 3+ 7+ 13 = 27 + 343 +1 = 371.

Program for Armstrong Number in C

 

Output

Enter any number: 371
The given number is an armstrong number

Leave a Reply

Your email address will not be published. Required fields are marked *