#include
int fun(int a,int b)
{
return (a > b ? a : b);
}
int main()
{
int a,b;
printf("Input a b: ");
scanf("%d %d",&a,&b);
printf("max = %d",fun(a,b));
return 0;
}
//#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;
}