I am new to C programming and trying to build a c program that can calculate perfect number from 1 to 10000, perfect number is like....1+2+3=6, 1+2+4+7+14=28....

help please please please!!!

here are my codes

Code:#include <stdio.h> #include <math.h> #define max_n 7.0 int main(void) { double n; int number; for (n=0;n<max_n;n+=1) { number = pow(2.0,n-1.0)* (pow(2.0,n)-1.0); if (number>1 && number <10000) { printf("The perfect number is %d.\n", number); } else { printf("System Error"); } return (0); } }