In this session, we are going to write a program to find the number is perfect or not. The variable s which is used in the program is for holding the value of sum of divisors, which is compared after termination of loop.
Try to write a program to list perfect numbers within n.