Write a program to input a number from the user and print whether it is a perfect
number or not. (A perfect number is one whose sum of the factors of the number is
equal to the same number or twice the number. Eg: 28 : 1+2+4+7+14+28=56 or
1+2+4+7+14-28)