I can't seem to figure out the syntax error on this one, it says the error is at the end of the input....
#include <stdio.h>
#include <math.h>
int determine(int);
void main(void)
{
int num1, even, odd;
printf("Enter a number: ");
scanf("%d", &num1);
printf("The number is: %d", determine(num1));
scanf("%d", &num1);
getchar();
int determine(int num1)
{
if(num1 %2 == 0)
num1 = even;
else
num1 = odd;
}
Any help would be appreciated,
Andrew