Here is the whole problem.
Write a program that outputs the numbers 1 thru 100 and obeys the following
special rules:
1. Outputs "Strata" whenever the number contains a 2。
2. Outputs "Red" whenever the number contains 2 identical digits.
3. Outputs "Blue" whenever the number two preceding the number you are on
contained a 2.
第三条Rule是什么意思?
What does it means: “the number two preceding the number you are on
contained a 2.”
Thanks.
x*******u 发帖数: 2074
2
第三条就是满足第一条的数+2的那个吧
following
【在 b*******u 的大作中提到】 : Here is the whole problem. : Write a program that outputs the numbers 1 thru 100 and obeys the following : special rules: : 1. Outputs "Strata" whenever the number contains a 2。 : 2. Outputs "Red" whenever the number contains 2 identical digits. : 3. Outputs "Blue" whenever the number two preceding the number you are on : contained a 2. : 第三条Rule是什么意思? : What does it means: “the number two preceding the number you are on : contained a 2.”
b*******u 发帖数: 501
3
Thx. 我也是这么理解的~ 这个句子看着非常拗口...
【在 x*******u 的大作中提到】 : 第三条就是满足第一条的数+2的那个吧 : : following