Pull the definition of the function strange out of the main function.
Is line 11 supposed to be a function prototype? It looks like a global variable not function.
Last edited on
I was trying to initialize strange so I can not get an error, but it didn't work, but thank you, now i know :D
one more thing...
1 2 3 4 5 6 7 8
|
int strange (int x, int y);// <-- remove semicolon here
{
if(x>y)
return x/y;
else
return y/x;
}
|
Last edited on