Verify that the number is complete or not
#include <stdio.h>
int main(void) {
  int n,i,x;
  printf("enter the number:");
  scanf("%d",&n);
x=0;
for (i=1;i<n;i++){
if(n%i==0){
  x=x+i;
}
}
printf("the result is %s " ,(x==n)?"true":"false");
  return 0;
}
