Class assignment (requires use of function). Wrote the code. It compiles, runs and gives me the desired result. However, I get warnings... "parameter names (without types) in function declaration, type mismatch with previous implicit declaration, previous declaration of 'is_prime, is_prime was previously implicitly declared to return 'int".
I have tried renaming the parameter, but then the program does not work. I reordered the code to put the function first and that eliminated all but one warning, "parameter names (without types) in function declaration".
void Is_Prime (num);
int main (void)
printf("Enter a Number to Test if it is Prime: ");
} /* End of Main */
void is_prime (int num)
int p = 0;
printf("%d is a Prime Number\n", num);
printf("%d is NOT a Prime Number\n", num);
Guidance or a point in the right direction will be appreciated. Thanks in advance.