c program to check whether number is perfect or not


#include
int main(){
int n,i=1,sum=0;

printf(“Enter a number: “);
scanf(“%d”,&n);

while(i