自考题库
首页
所有科目
自考历年真题
考试分类
关于本站
游客
账号设置
退出登录
注册
登录
搜索
下面程序的功能是从键盘上输入若干学生的学习成绩,统计并输出最高成绩和最低成绩,当输入为负数时结束输入。
main()
{ float x,amax,amin;
scanf("%f",&x);
amax=x;
amin=x;
while( ① )
{ if(x>amax) amax=x;
if( ② ) amin=x;
scanf("%f",&x);
}
printf("\namax=%f\namin=%f\n",amax,amin);
}
出自:
安阳师范学院-计算机基础与程序设计
显示答案
提示:
同一【IP】的非会员用户每天可免费获取10次答案
收藏本站【zk.995w.com】,下次访问不迷路
本站试题总数:【10245629】个 (题库试题定时更新)