第1个回答 2014-12-18
//#include "stdafx.h"//vc++6.0加上这一行.
#include "stdio.h"
int mymax(int a,int b){
return a>b ? a : b;
}
int main(void){
int a,b;
printf("Input 2 integers...\n");
scanf("%d%d",&a,&b);
printf("The max-num is %d\n",mymax(a,b));
return 0;
}本回答被网友采纳