在考生文件夾下,給定程序FILL.C的功能是:
把數(shù)組a(大小為M)中前M-1個(gè)元素中的最小值放入a的最后一個(gè)元素中
#include
#define M 11
void main()
{ int a[M],i;
for(i=0;i scanf("%d",&a[i]); a[M-1]=a[0];
for(i=1;i
/************found************/
for(i=1; ___(1)___;i++)
/************found************/
if(a[M-1]>a[i]) |
a[M-1]=a[i];
printf("Max is %d\n",a[M-1]);
}
![]() | ![]() .. 定價(jià):¥225 優(yōu)惠價(jià):¥213 更多書籍 |
![]() | ![]() .. 定價(jià):¥133 優(yōu)惠價(jià):¥133.0 更多書籍 |