Closed harshraj8843 closed 2 years ago
Write a Java program to check Armstrong number.
Armstrong number is a number that is equal to the sum of cubes of length of its digits.
0
0^1
1
1^1
153
1^3 + 5^3 + 3^3
370
3^3 + 7^3 + 0^3
9474
9^4
4^4
7^4
Input: 153 Output: armstrong number
Input: 121 Output: not a armstrong number
Hi! I'd like to work on this issue
Title of article
Write a Java program to check Armstrong number.
Additional information
Armstrong number is a number that is equal to the sum of cubes of length of its digits.
Examples
0
=0^1
1
=1^1
153
=1^3 + 5^3 + 3^3
370
=3^3 + 7^3 + 0^3
9474
=9^4
+4^4
+7^4
+4^4
Programme
Code of Conduct