write a program to display Armstrong numbers in java
Answers
Answered by
1
153 = (1*1*1)+(5*5*5)+(3*3*3) where: (1*1*1)=1 (5*5*5)=125 (3*3*3)=27 So: 1+125+27=153
Let's try to understand why 371 is an Armstrong number.
371 = (3*3*3)+(7*7*7)+(1*1*1) where: (3*3*3)=27 (7*7*7)=343 (1*1*1)=1 So: 27+343+1=371
Let's try to understand why 371 is an Armstrong number.
371 = (3*3*3)+(7*7*7)+(1*1*1) where: (3*3*3)=27 (7*7*7)=343 (1*1*1)=1 So: 27+343+1=371
Dindk:
bro i asked the program
Similar questions