题目,用函数求两数中的较大值

int compare(int x, int y)

{

int z = 0;

if (x > y)

 z = x;

else

 z = y;

return z;

}

int main()

{

int a = 0;

int b = 0;

int c = 0;

scanf("%d%d", &a, &b);

c = compare(a, b);

printf("%d", c);

return 0;

}