Lets write a C program to check if user entered number is a perfect number or not, using for loop.…
Lets write a C program to check if user entered number is a perfect number or not, using while loop.…