int X (int m);
int Y (int n);
int main ()
{
int r, s;
r = X (5);
s = Y (10);
printf ("main: %d %d\n"), r, s);
return 0;
}
int X (int m)
{
printf ("X: %d\n", m);
return (m + 2);
}
int Y (int n)
{
printf ("Y: %d %d\n", n, X (n));
return (n * 3);
}
--given the above code, i tried running it, but it wouldn't compile. I've fixed it to the best i can, but still wont compile. I'm guessing the output would print 7, 21?
Please help, thank you.
int Y (int n);
int main ()
{
int r, s;
r = X (5);
s = Y (10);
printf ("main: %d %d\n"), r, s);
return 0;
}
int X (int m)
{
printf ("X: %d\n", m);
return (m + 2);
}
int Y (int n)
{
printf ("Y: %d %d\n", n, X (n));
return (n * 3);
}
--given the above code, i tried running it, but it wouldn't compile. I've fixed it to the best i can, but still wont compile. I'm guessing the output would print 7, 21?
Please help, thank you.
Comment