1. A Perfect Number N is a number whose sum of the proper divisors is equal to N. The proper divisors are the numbers that are evenly divisible to N from 1
1 2 4 7 14 are the proper divisors of 28.
The sum of this number is 28, which is N itself, therefore, 28 is called a PERFECT NUMBER. If the sum of the proper divisors of N is less than N, then N is a Deficient Number. If the sum of the proper divisors of N is more than N, then N is Abundant Number.
Write a program that allows the user to enter the value of N and then displays the result indicating whether the number entered is perfect, deficient or abundant.
Input a number: 16
The proper divisors of 16 are:
1 2 4 8
Sum of the proper divisors = 15
Therefore, 16 is a deficient number.