#include void main(){int a,b,c,d,e;scanf("%d",&a);scanf("%d",&b);scanf(
#include<stdio.h>main(){ float a,b,c,max,min,sum,average; printf("请输入三个实数,以空格隔开"); scanf("%f %f %f",&a,&b,&c); max=a; min=a; if(b>max) max=b; if(b<min) min=b; if(c>max) max=c; if(c<min) min=c; sum=min+max; average=sum/2; printf("和值为%f\n",sum); printf("平均值为%f\n",average);}
int a,b,c,MAX,MIN;sancf("%d%d%d",&a,&b,&c);MAX=MIN=a;if(MAX < b)MAX = b;if(MIN > b) MIN = b;if(MAX < c) MAX = c;if(MIN > c) MIN = c;printf("和=%d,平均=%f",MIN+MAX,((folat)(MAX+MIN))/2);
#include <stdio.h>void main(){int a,b,c,d,e;scanf("%d",&a);scanf("%d",&b);scanf("%d",&c);d=a>b? a:b;d=a>c? a:c;e=a<c? a:c;e=a<b? a:b;printf("max + min=%d\n",d+e);printf("Average=%d",(d+e)/2);}------望采纳!!!
最多设置5个标签!
#include<stdio.h>
main()
{
float a,b,c,max,min,sum,average;
printf("请输入三个实数,以空格隔开");
scanf("%f %f %f",&a,&b,&c);
max=a;
min=a;
if(b>max) max=b;
if(b<min) min=b;
if(c>max) max=c;
if(c<min) min=c;
sum=min+max;
average=sum/2;
printf("和值为%f\n",sum);
printf("平均值为%f\n",average);
}
int a,b,c,MAX,MIN;sancf("%d%d%d",&a,&b,&c);MAX=MIN=a;if(MAX < b)MAX = b;if(MIN > b) MIN = b;if(MAX < c) MAX = c;if(MIN > c) MIN = c;printf("和=%d,平均=%f",MIN+MAX,((folat)(MAX+MIN))/2);
#include <stdio.h>
void main()
{
int a,b,c,d,e;
scanf("%d",&a);
scanf("%d",&b);
scanf("%d",&c);
d=a>b? a:b;
d=a>c? a:c;
e=a<c? a:c;
e=a<b? a:b;
printf("max + min=%d\n",d+e);
printf("Average=%d",(d+e)/2);
}
------望采纳!!!