#include
int max(int a, int b)
{
return a > b ? a : b;
}
int main()
{
int a,b,c;
scanf("%d%d%d",&a,&b,&c);
printf("%d最大\n",max(max(a,b),c) ); // 事实上只需要求两个数最大者就行
return 0;
}
#include
int main()
{
printf("Please input three integer:");
int integer1 = 0, integer2 = 0, integer3 = 0;
scanf("%d %d %d", &integer1, &integer2, &integer3);
int max = integer1;
if (max < integer2)
{
max = integer2;
}
if (max < integer3)
{
max = integer3;
}
printf("the max integer is %d\n", max);
return 0;
}
int max_num(int a[3]){
int tep;
a[0]>a[1]?tep=a[0]:tep=a[1];
return tep>a[1]?tep:a[2];
}
void main(){
int a[3],max;
scanf("%d",a);
max=max_num(a);
printf("max=%d\n",max);
}
function max(double a,double b,double c){
double r =a;
if(r r=b
if(r
return r
}