Java program of Perfect Number


Perfect Number means  sum of each digit and product of each digit of given number  is Equal

i.e  123

sum of digit of number is   3 +2+ 1 = 6

product of digit of number is   3 * 2 * 1 = 6


program of Armstrong in JAVA

E:>javac PerfectNumber.java

// Note : ignored

// Deprecated API ignored message

// run java command

E:>java PerfectNumber

Enter any Number : 123

123  is PerfectNumber

(Visited 61 times, 1 visits today)

Leave a Reply

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


CAPTCHA Image
Reload Image