Program for Armstrong Number in C++

Here you will get program for armstrong number in C++.

A number whose sum of digits raised to power n is equal to itself is called armstrong number. Here n is the total digits in the number.

For example, 153 is armstrong number as 153 = 1+ 5+ 33 = 1 + 125 +27.

Program for Armstrong Number in C++

 

Output

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

10 thoughts on “Program for Armstrong Number in C++

Leave a Reply

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