its weird..and seem easy. yet i can'f figure it out.
every time i tried to run this program is say
"error C2447: missing function header (old-style formal list?)"
//finding the value of paased number
#include<stdio.h>
int whole(int,int);
int main()
{
int AnyNum,AssigNum,TolNum;
AssigNum = 20;
printf("please enter value for AnyNum:");
scanf("%d",&AnyNum);
TolNum = whole(AnyNum,AssigNum);
printf("the passed number is %d", TolNum);
return 0;
}
int whole(int x, int y);
{
int TolNum;
if(x!=y, --x)
TotNum = x;
return (TolNum);
}