Technicalsymposium.com-Free Email Alerts


Enter Your Email :

Important Note:Login & Check Your Email Inbox and Activate Confirmation Link

Subscribe & Get All Fresher Jobs Information & Study Materials PDF and Projects- Free Download

C Programming Books PDF


C Aptitude Question Papers


Datastructure Programming in C



C Programming & Tech Interview Materials PDF- Free Download

C Program For PERFECT NUMBER.

void main()

{

int c=0,n,i;

clrscr();


printf("Enter n value:");

scanf("%d",&n);

for(i=1;i
{

if(n%i==0)

{

c=c+i;

}

}

if(n==c)

{

printf("given number %d is perfect number",c);

}

else

{

printf("not perfect number");

}

getch();

}

Download All C Programming & Study Materials PDF