设变量 n 已正确定义并赋值,以下不能实现自然数 1 到 n 累加求和的程序 A. int sum=1,i=0; while(i<=n) { i++; sum+=i; } B. )int sum=0,i=0; while(i C. int sum=0,i=1; while(i<=n) { sum+=i; i++; } D. int sum=1,i=1 ; while(i
手机使用
分享
复制链接
新浪微博
分享QQ
微信扫一扫
微信内点击右上角“…”即可分享
反馈
参考答案:
举一反三
【单选题】–Is your brother a worker or a doctor?. – ___________.
【简答题】If you are not able to attend your appointment with your doctor, or need to change it to a more convenient time, it is important that you let us know as soon as possible. This will enable us to offer ...