Sunday, August 12, 2012

Armstrong Number

Assalamu Alaikum. Hope you all are well by the grace of Almighty ALLAH. Today we learn how write a C programming code of a Armstrong Number. Take a look at the problem.

Problem: Write a program to check whether a number is Armstrong or not.


A number is Armstrong if the sum of cubes of individual digits of a number is equal to the number itself.
For example 371 is an Armstrong number as 3^3 + 7^3 + 1^3 = 371. Some other Armstrong numbers are 0, 1, 153, 370, 407.

Now, take a look at the program.

Thank you all..


Post a Comment