Q. WAP to accept any number and check the number is perfect or not.
Example:
Input Number- 6
Factors- 1,2,3
Sum=1+2+3=6
Input value & calculated value both are same, the 6 is a perfect number.
Enter a number:
The number is: