Write a Program to check if given number is Perfect number or not

This article will help you to understand Java program to check perfect number.



First Perfect number is 6. 1,2 and 3 are it’s proper positive divisors. And 1+2+3 = 6. Equivalently (1+2+3+6)/2 = 6

Java program to check perfect number


Is number 28 a perfect number :- true Is number 50 a perfect number :- false

Leave a Reply
