ChaseDream
搜索
返回列表 发新帖
查看: 7364|回复: 3
打印 上一主题 下一主题

谁能给解释一下流程图啊?

[复制链接]
跳转到指定楼层
楼主
发表于 2012-8-1 12:00:07 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
IR prep里的一道题。
[attachimg=796,145]104044[/attachimg]
The flowchart represents a mathematical algorithm that takes two positive integers as the input and returns a positive integer as the output. Processes are indicated in the rectangular symbols in the flowchart. Each process is symbolized by an equation, such as T = T + a. In this particular process, the current values of the variables T and a are added together and the sum then becomes the value of T. For example, if the value of T is 3 and the value of a is 7 before the process T = T + a is completed, then the value of T is 10 and the value of a is 7 after the process is completed.
  Use the drop-down menus to fill in the blanks in the following statements based on the algorithm represented by the flowchart.
  If 24 and 35 are entered as the values for a and b, respectively, then the first nonzero value of T is select..24,48,96,192,384 .
  If 35 and 27 are entered as the values for a and b, respectively, then after the process  is completed for the second time, the value of3,6,12,13,26 b is select..3,6,12,13,26 .

看不明白啊
答案是24,6

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?立即注册

x
收藏收藏 收藏收藏
沙发
发表于 2012-8-3 13:04:24 | 只看该作者
IR prep里的一道题。
104044
The flowchart represents a mathematical algorithm that takes two positive integers as the input and returns a positive integer as the output. Processes are indicated in the rectangular symbols in the flowchart. Each process is symbolized by an equation, such as T = T + a. In this particular process, the current values of the variables T and a are added together and the sum then becomes the value of T. For example, if the value of T is 3 and the value of a is 7 before the process T = T + a is completed, then the value of T is 10 and the value of a is 7 after the process is completed.
  Use the drop-down menus to fill in the blanks in the following statements based on the algorithm represented by the flowchart.
  If 24 and 35 are entered as the values for a and b, respectively, then the first nonzero value of T is select..24,48,96,192,384 .
  If 35 and 27 are entered as the values for a and b, respectively, then after the process  is completed for the second time, the value ofb is select..3,6,12,13,26 .

看不明白啊
答案是24,6
-- by 会员 little1984 (2012/8/1 12:00:07)




[attachimg=487,117]104152[/attachimg]

第一题选24
[tr][/tr][td=111][/td][td=72][/td][attachimg=496,184]104153[/attachimg]
第二题选6


[tr][/tr][td=111][/td][td=72][/td]

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?立即注册

x
板凳
 楼主| 发表于 2012-8-3 22:40:13 | 只看该作者
哈,终于明白了。。谢谢啊。
地板
发表于 2014-7-22 22:23:09 | 只看该作者
为甚么第二条只循环两次而不继续?
您需要登录后才可以回帖 登录 | 立即注册

Mark一下! 看一下! 顶楼主! 感谢分享! 快速回复:

手机版|ChaseDream|GMT+8, 2024-5-5 16:04
京公网安备11010202008513号 京ICP证101109号 京ICP备12012021号

ChaseDream 论坛

© 2003-2023 ChaseDream.com. All Rights Reserved.

返回顶部