#include<stdio.h>
#include<conio.h>
void
main()
{
int i,num,sum=0,temp;
clrscr();
printf("\n enter the value of num");
scanf("\n %d",&num);
temp=num;
for(i=1;i<=num;i++)
{
if(num%i==0)
{
sum=sum+i;
}
}
if(num==temp)
{
printf("\n the num is perfect");
}
getch();
}
/* output
enter the value of num6
the num is perfect */