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.
Please help. I'm so confused.