Armstrong Number Program in C

Prem Tiwari - - C Programming Tutorial

Armstrong number is number which is the sum of its digit raised to the power of n itself. Here is the explanation:

Then let’s check the given number 153 is an Armstrong Number or not an Armstrong Number.

1^3 + 5^3 + 3^3 = 1 + 125 + 27 = 153.

There are many numbers which are the Armstrong number like 0, 1, 153, 370, 371 and 407.

How to write the Armstrong number program

Output is:

About: Prem Tiwari

Prem Tiwari is the founder of and also a professional developer who has vast experience in PHP and open source technologies. Apart from this, he is a blogger by hobby and also he has been a regular speaker of WordPress sessions in various IT Companies.

Tags: , , , , , ,

Leave a Reply

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.