Program to check whether a number is perfect or not

 

Sample Input
Enter a number:6
Sample Output
The given number is perfect number

You may also like...