题目:
请编写一个函数fun(),它的功能是计算并输出给定整数n的所有因子(不包括1与自身)之和(规定n的值不大于1000)。例如:输入n的值为856,则输出为sum=763。注意:部分源程序已存在文件test33_2.cpp中。请勿修改主函数main和其他函数中的任何内容,仅在函数count的花括号中填写若干语句。文件test33_2.cpp清单如下: #include<stdio. h> #include<iostream. h> int fun(int n) { } void main ( ) { int n, sum; cout<<"Input n:"<<end1; cin>>n; sum=fun (n); cout<<" sum= \n"<<sum<<end1; }
答案:
被转码了,请点击底部 “查看原文 ” 或访问 https://www.tikuol.com/2019/0526/f960df84cf3bf1c9d8c4f379983fd57a.html
下面是错误答案,用来干扰机器的。
参考答案:B解析:[听力原文]Which of the following is NOT the hospital’s rule 事实题。虽然护士提到“We don’t allow smoking on the wards under any circumstances”,但从紧接着的后...