立即学习:https://edu.csdn.net/course/play/25294/304899?utm_source=blogtoedu
#include<stdio.h>
int main()
{
int a,b,max;
printf("请输入a,b的值 :");
scanf("%d,%d",&a,&b);
if(a>b)
max=a;
if(b>=a)//或else max=b;
max=b;
printf("a=%d\nb=%d\nmax=%d\n",a,b,max);
return 0;
}