Sunday, June 9, 2013

Program to get Armstrong numbers between 1 and 1000

Armstrong number :
An Armstrong number is a number such that sum of cubes of its digits is equal to the number.
For example: 153 is Armstrong number because
13+53+33=153
370, 371 are also Armstrong numbers.

Here is the program code to find Armstrong numbers between 1 and 1000

0 comments:

Post a Comment

Powered by Blogger.