c语言输入三个数求其最大值
//输入三个数,求其中最大值
#include <stdio.h>
int main()
{
int a,b,c;
scanf("%d %d %d",&a,&b,&c);
if(a<b){
a = b;
}
if (a<c){
a = c;
}
printf("the max is %d",a);
return 0;
}
c语言输入三个数求其最大值
//输入三个数,求其中最大值
#include <stdio.h>
int main()
{
int a,b,c;
scanf("%d %d %d",&a,&b,&c);
if(a<b){
a = b;
}
if (a<c){
a = c;
}
printf("the max is %d",a);
return 0;
}