#include <stdio.h>
#include <conio.h>
int main(){
int max(int,int);
printf("请输入四个数:\n");
int a,b,c,d,max1,max2,max3;
scanf("%d,%d,%d,%d",&a,&b,&c,&d);
max1=max(a,b);
max2=max(max1,c);
max3=max(max2,d);
printf("最大数为:%d",max3);
getch();
return 0;
}
int max(int x,int y){
int z;
z=x>y?x:y;
return z;
}