armstrong number c program
armstrong number c program: c programming code 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 33 + 73 + 13 = 371. Some other armstrong numbers are: 0, 1, 153, 370, 407.
C programming code
Output of program:
Enter a number
407
Entered number is an armstrong number
No comments:
Post a Comment