皮皮学,免费搜题
登录
logo - 刷刷题
搜题
【简答题】
下面程序的功能是输入 5 个整数,找出最大数和最小数所在的位置,并把二者对调,然后输出调整后的 5 个数。请填空。 #include void main ( ) {int a[5],max,min,i,j=0,k=0; for(i=0;i<5;i++) scanf(“%d”,&a[i]); min=a[0]; for(i=1;i<5;i++) if(a[i] (1) ;} max=a[0]; for(i=1;i<5;i++) if(a[i]>max) {max=a[i]; (2) ;} (3) printf(“\nthe position of min is:%3d\n”,j); printf(“the position of max is:%3d\n”,k); for(i=0;i<5;i++) printf(“%5d”,a[i]); }
手机使用
分享
复制链接
新浪微博
分享QQ
微信扫一扫
微信内点击右上角“…”即可分享
反馈
参考答案:
举一反三
【单选题】context.arc ()方法用于绘制圆形,一般其中的第几个参数决定圆形的半径 [ ]
A.
1
B.
2
C.
3
D.
4
【单选题】The exciting news he had been looking forward ___ at last, so he did nothing but____.
A.
to came; cry
B.
to coming; cry
C.
to come; to cry
D.
of come; to cry
【单选题】context.arc()方法用于绘制圆形,其中第几个参数决定圆形的半径
A.
1
B.
2
C.
3
D.
4
【单选题】context.arc ()方法用于绘制圆形,一般其中的第几个参数决定圆形的半径[1.0]
A.
1
B.
2
C.
3
D.
4
【单选题】At last we found the house ____ he had been living .
A.
in that
B.
in which
C.
at which
D.
on which
【单选题】The day he had been looking forward to _____at last.
A.
coming
B.
came
C.
had come
D.
have come
【简答题】He had at last been___to send afax. prefix="o" ns="urn:schemas-microsoft-com:office:office"? ?xml:namespace>A. adimtted B. let C. left D. given permission
【单选题】The letter he had been looking forward to ____ at last .
A.
arrive
B.
arrives
C.
arriving
D.
arrived
【单选题】当需要进行多方位测量的较小型零件时,适合采用( )夹具装夹。
A.
专用
B.
组合
C.
柔性
D.
普通
【单选题】The general at last got a chance to visit the village ____ he used to fight, _____ he had been dreaming of for years. [     ]
A.
that/which
B.
where/that
C.
in which/what
D.
where/which
相关题目:
参考解析:
知识点:
题目纠错 0
发布
创建自己的小题库 - 刷刷题