write a program to check whether a given number is armstrong no or not. ( A number is said to be an armstrong, if the sum of cubes of digits is equal to the original number. E.g 153=1^3+5^3+3^3=153)
Answers
Answered by
2
Answer:
A positive integer is called an Armstrong number (of order n) if
abcd... = an + bn + cn + dn +
In the case of an Armstrong number of 3 digits, the sum of cubes of each digit is equal to the number itself. For example, 153 is an Armstrong number because
153 = 1*1*1 + 5*5*5 + 3*3*3
hope it helps
Answered by
0
Answer:
it is an armstrong question
Explanation:
hopes it good
Attachments:
Similar questions