#include <stdio.h>
int main()
{
int x, y, z,d ;
printf("请输入三个整数:\n");
scanf("%d %d %d", &x, &y, &z);
if (x>y)
if (x>z)
d = x;
else
d = z;
else
if (y>z)
d = y;
else
d = z;
printf("最大值是:\n%d", d);
return 0;
}
输出结果: