what does the " t - " mean?
Neither you read “x” nor “ans”, so what do you expect ?
I mean, you don’t have to read the “x” but what with the “ans” ?
I see you read the numbers in the function “fun”, so you should run this function without any argument
like this :
x = fun();
if you expect that fun(); will return something, because i don’t see it in your code.
Example of function that returns something:
#include <stdio.h>
int function();
int main()
{
int x;
x = function();
printf("%d\n",x);
}
int function()
{
int a;
scanf("%d",&a);
a +=2;
return a;
}
//what could possibly go wrong ? 