求一个C语言编程 输入N个数 求最大值 最小值 平均数
人气:431 ℃ 时间:2020-03-29 21:22:48
解答
void main()
{ int a[100],i,j;
int max,min,aver;
\x05char c;
\x05i=0;
\x05aver=0;
\x05printf("请输入N个数\n");
\x05do
\x05{
\x05\x05scanf("%d",&a[i]);
\x05\x05i++;
\x05 c=getchar();
\x05 if(c=='\n')
\x05\x05break;
\x05}
\x05while(1);
\x05j=i;
\x05for(i=0;i
推荐
猜你喜欢
- the boys ()copy the new words 10 times before they went home.A.were made,B.were made to
- 改同义句:What dose he do?(What ____ _____?)(What's ____ _____?)
- 连续函数求导后一定是连续函数吗?
- 设f(x,y)与φ(x,y)均为可微,且φ´y(x,y)≠0,已知(x0,y0)是f(x,y)在约束条件φ(x,y)=0下一个极值点
- 如图,已知:Rt△ABC中,∠C=90°,AC=BC=2,将一块三角尺的直角顶点与斜边AB的中点M重合,当三角尺绕着点M旋转时,两直角边始终保持分别与边BC、AC交于D、E两点(D、E不与B、A重合). (1)
- 质点沿X轴运动,其加速度和位置关系为A=2+6X^2,质点在X=0时速度为10米每秒,求质点在任何坐标处的速度值
- lt is very hot now.Please t---- o----- the sweater,and p ----o ---- the T-shiet.
- 小心翼翼,照样子写词语