1
#include<stdio.h>
int main()
{
int a=0;
int b=0;
int c=0;
scanf("%d",&a);
scanf("%d",&b);
scanf("%d",&c);
if(a>b)
{
if(a>c)
{
printf("%d\n",a);
}
else if(a<c)
printf("%d\n",c);
}
else if(a<b)
{
if(b>c)
{
printf("%d\n",b);
}
else if(b<c)
printf("%d\n",c);
}
return 0;
}
2
#include<stdio.h>标签:return,int,最大值,d%,else,printf,scanf From: https://blog.51cto.com/u_15766378/5787600
int main()
{
int t,a,b,c;
scanf("%d%d%d",&a,&b,&c);
if(a>b)
if(a>c) t=a;
if(a<b)
if(b>c) t=b;
if(c>a)
if(c>b) t=c;
printf("%d\n",t);
return 0;
}