I'm trying to write a program that counts the number of perfect numbers within a limit, but the compiler keeps on giving me the "missing ')' before identifier 'num_squares'" error. Please help...
int main(void) {
int num_squares = 0;
int limit = 30;
while(num_squares * num_squares < limit)
num_squares++;
printf("%d," num_squares);
}