皮皮学,免费搜题
登录
logo - 刷刷题
搜题
【简答题】
下面程序的功能是输入 5 个整数,找出最大数和最小数所在的位置,并把二者对调,然后输出调整后的 5 个数。请填空。 #include int 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] < min ) { min = a[i] ; _______; } max = a[0] ; for( i = 1 ; i < 5 ; i++ ) if( a[i] > max ) { max = a[i] ; _______; } _______; _______; printf( "\nThe position of min is:%3d\n" , k ) ; printf( "\nThe position of max is:%3d\n" , j ) ; for( i = 0 ; i < 5 ; i++ ) printf( "%5d" , a[i] ) ; return 0 ; }
手机使用
分享
复制链接
新浪微博
分享QQ
微信扫一扫
微信内点击右上角“…”即可分享
反馈
参考答案:
举一反三
【单选题】回答{TSE}题: Obesity Causes Global Warming The list of ills attributable to obesity keeps growing: Lastweek,obese people were accused of causing global warming. This conclusion comes from Sheldon Jacobso...
A.
A meager diet may keep you thin.
B.
It means an extra 11 million tons of carbon dioxide. C. The obese child was picked last. D.US economist Martin Schmidt suggests a tax on fast fooddelivered to people's cars. E. Science has shown that they have limited personal controlover their weight. F. No one asked whether there was really a cause-and-effectrelationship. {TS} 46__________
【单选题】制冷系统采用回热循环可以提高制冷系数。
A.
R717
B.
R12
C.
R22
D.
B+C
【单选题】危险货物卸车后,将清理车辆残存废弃物交由( )负责处理。
A.
装卸工组
B.
收货人
C.
货运员
D.
指定人员
【单选题】()制冷系统采用回热循环可以提高制冷系数。
A.
R717
B.
R12
C.
R22
D.
B十C
【简答题】A.Smoking, malnutrition and obesity. B.Obesity, cancer and diabetes. C.Sugar, salt and fats. D.Drinking, smoking and obesity.
【单选题】下列能够形成H公司与债务人之间财务关系的是
A.
公司向H公司投入资本
B.
甲公司赊购H公司销售的产品
C.
丙公司购买H公司发行的股票
D.
丁公司购买H公司发行的优先股
【单选题】危险货物卸车后,应将清理的车辆残存废弃物交由()负责处理。
A.
装卸工组
B.
收赀人
C.
货运员
D.
指定人员
【判断题】TV and obesity always go hand in hand because TV takes the place of playing outside or other kinds of exercise.
A.
正确
B.
错误
【单选题】危险货物卸车后,将清理车辆残存废弃物交由(B)负责处理。
A.
装卸工组
B.
收货人
C.
货运员
D.
指定人员
【单选题】苏州乐园.mp4
A.
journey of food
B.
journey of amusement
C.
jouney of culture
D.
journey relaxation
相关题目:
参考解析:
知识点:
题目纠错 0
发布
创建自己的小题库 - 刷刷题