Computer Science, asked by patelastha1234, 1 year ago

input multi digit number calculate sum of the cube of each digit of the number in int sum method check and print whether the number is an Armstrong number or not in main method. Write in java​

Answers

Answered by straightvision89
1

Answer:

In case of an Armstrong number of 3 digits, the sum of cubes of each digits is equal to the number itself. For example: 153 = 1*1*1 + 5*5*5 + 3*3*3 // 153 is an Armstrong number.

Similar questions