|

楼主 |
发表于 2025-3-20 17:41:56
|
显示全部楼层
include stdio.h
int main( )
{
float x, amax, amin;
scanf(%f, &x);
amax = x;
amin = x;
while( 1 )
{
if(x > amax) amax = x;
if( 2 ) amin = x;
scanf(%f, &x);
}
printf(\namax=%f\namin=%f\n, amax, amin);
return 0;
}
选项:
答案: 请关注ybaotk.com搜题查看答案
问题 137: 14. 计算正整数num的各位上的数字之积。例如,若输入234,则输出应该是24。若输入808,则输出应该是0,请填空。
阅读程序,在程序中提示行/*************************/的下一行填写正确内容,将程序补充完整。
注意:仅填写划线部分 所缺的内容!!!且 每空的最后不要写分号!!!
题干上没有分号,也不要在答案中写分号!!!以后均如此!!!
|
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
|