Create C program to check perfect number

C program to check perfect number