网课答案 | 资源分享
  • 首页
  • 最新收录
  • 微信公众号对接
  • 微信小程序对接
  • 联系站长
登录/注册
网课答案LOGO
关注微信公众号《课帮忙》查题
关注微信公众号《课帮忙》查题
关注微信公众号《课帮忙》查题
关注微信公众号《课帮忙》查题
关注微信公众号《课帮忙》查题
关注微信公众号《课帮忙》查题
  • 公告:维护QQ群:833371870,欢迎加入!
  • 公告:维护QQ群:833371870,欢迎加入!
  • 公告:维护QQ群:833371870,欢迎加入!
  • 2022-07-28
    以下哪个程序不能使s=s+i这句话执行10次:
    A: i=0s=0while i<10: s=s+i i=i+1
    B: i=1s=0while i<=10: s=s+i i=i+1
    C: i=10s=0while i>0: s=s+i i=i-1
    D: i=2s=0while i<11: s=s+i i=i+1
  • 查看

    公众号

    广告招租

    举一反三

    • 以下哪个程序不能使s=s+i这句话执行10次: A: i=0s=0while i<;10: s=s+i i=i+1 B: i=1s=0while i<;=10: s=s+i i=i+1 C: i=10s=0while i>;0: s=s+i i=i-1 D: i=2s=0while i<;11: s=s+i i=i+1
    • 以下能计算1-20的所有偶数之和的程序有: A: i=1s=0while i<=20: s=s+i i=i+2 B: i=2s=0while i<=20: s=s+i i=i+2 C: i=1s=0while i<=20: if i%2==0: s=s+i i=i+1 D: i=1s=0while i<=20: if i%2==0: s=s+i i=i+1
    • 求整数1至10的和并存入变量s,下列语句中错误的是()。 A: s=0;for(i=1;i<=10;i++)s+=i; B: s=0;i=1;for(;i<=10;i++)s=s+i; C: for(i=1,s=0;i<=10;s+=i,i=i+1); D: for(i=1;s=0;i<=10;i++)s=s+i;
    • 以下能正确计算1×2×3×…×10的程序段是 。 A: do {i=1;s=1; s=s*i; i++; } while(i&lt;=10); B: do {i=1;s=0; s=s*i; i++; } while(i&lt;=10); C: i=1;s=1; do {s=s*i; i++; } while(i&lt;=10); D: i=1;s=0; do {s=s*i; i++; } while(i&lt;=10);
    • 下列程序输出结果是______。 [br][/br] i=1 s=0 while i<=10: if i%3!=0: s=s+i i=i+1 print(s) A: 18 B: 37 C: 55 D: 0

    热门题目

    • 电池的发明人是谁?()
    • Which is not the transitional words for causes?
    • 把字体从三维平面形象变为三维立体效果,是()的方法。
    • 建立“三省六部制”的是()。 A: 周朝 B: 秦朝 C: 隋朝 D: 汉朝
    • 中国古代称玻璃为()
    • Rusty’s market analysis reached conclusions that are both _______ and instructive for anyone in need of a greater understanding of the North American energy market. ( ) A: information B: inform C: informative D: informed
    • 心理学成为一门独立学科是在______ A: 18世纪末 B: 20世纪初 C: 20世纪中叶 D: 19世纪末
    • 外部效应的矫正措施有() A: 罚款或征税 B: 补贴 C: 公共管制 D: 法律措施
    • 用什么方法评价公司的竞争地位?一般有几个主要步骤?
    • 年龄在18-21岁时,处于整个职业规划的()阶段。 A: 预备 B: 探索 C: 立业 D: 维持

    相关标签

      11 2s 1s 0s 0while lt 执行 哪个 程序 while i-1 能使 gt i+1 以下 s+i 句话 10s i&lt 不能 i&gt 这句 10

    查题对接

    • 微信查题

    站点信息

    • 统计数据:百度统计
    • 交换友链:QQ联系
    • 微信公众号:扫描二维码,关注我们
    友情链接:
    • 网课答案
    • 换友链点击联系

    Copyright © 2018-2023 网课答案 All Rights Reserved.  冀ICP备19017793号版权与免责声明