Java program of Armstrong Number


Armstrong  number means  sum of each digit cube is same as original number

i.e  153 = 33 + 53 +13

program of Armstrong in JAVA

Output of Armstrong number in Java

E:>javac Armstrong .java

// Note : ignored

// Deprecated API ignored message

// run java command

E:>java Armstrong

Enter any Number : 153

153  is Armstrong



(Visited 51 times, 1 visits today)

Leave a Reply

Your email address will not be published. Required fields are marked *

Reload Image