Ads 468x60px

Labels

Tuesday, 4 September 2012

C Code to Find Armstrong Numbers

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.