Welcome to the Java Programming Forums

The professional, friendly Java community. 21,500 members and growing!

The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.

>> REGISTER NOW TO START POSTING

The problem reads a perfect number is defined as a positive integer which is the sum of its proper divisors. Or in other words, the sum of the positive divisors excluding itself. The first perfect number is 6 because 1 + 2 + 3 = 6. The next perfect number is 28 because 1+2+4+7+14= 28. Write a program that takes in a number from the user and prints out whether their number is perfect or not. If it is perfect the display the summation equation. Otherwise, simply state that it is not perfect.