#include"stdio.h" int max(int a,int b) { int max=(a>b)?a:b; return max; } void main () { int a,b; printf("输入两个整数:"); scanf("%d%d",&a,&b); printf("%d\n",max(a,b)); }