#include<stdio.h> #include<conio.h> #include<math.h> void main() { int sum=0,m,n,j,k; printf("The sum of the over numbers that less than 1000 is:\n"); for(m=2;m<=1000;m++) { k=m/2,n=0; for(j=1;j<=k;j++) { if(m%j==0) n=n+j; } if(m==n) { printf("%d",m);printf("+");sum=sum+m; } } putchar('\b'); printf("=%d",sum); getch(); }