Showing posts with label Armstrong number. Show all posts
Showing posts with label Armstrong number. Show all posts

Friday, March 16, 2012

ArmStrong Number

An Armstrong number of three digits is an integer such that the sum of the cubes of its digits is equal to the number itself. For example, 371 is an Armstrong number since 3**3 + 7**3 + 1**3 = 371.


Write a program to find all Armstrong number in the range of 0 and 999.