#include<stdio.h>void main(){int NUM,i,SUM=0;printf("\nENTER ANY INTERGER AND FIND IS IT PERFECT NUMBER : ");
scanf("%d",&NUM);for(i=1;i<NUM;i++){if(NUM%i==0){
SUM=SUM+i;}}if(SUM==NUM){printf("\n%d IS A PERFECT NUMBER",NUM);printf(" SINCE SUM OF DIVISORS IS %d \n",SUM);}else{printf("\n%d IS NOT A PERFECT NUMBER",NUM);printf(" SINCE SUM OF DIVISORS IS %d \n",SUM);}
getch();}