# include <stdio.h>
int max(int x, int y, int z)
{
int t;
if(x>y)
t = x;
else
t = y;
if(z>t)
t = z;
return t;
}int main(void)
{
int a, b, c, n;
printf("Input Three Number:");
scanf("%d %d %d", &a, &b, &c);
n = max(a, b, c);
printf("The Max Number is:%d\n", n);}
函数_习题:编写一个函数输出三个数中的最大数
最新推荐文章于 2023-03-20 12:30:00 发布