- 分享
- 0
- 人气
- 0
- 主题
- 1
- 帖子
- 1084
- UID
- 130560
- 积分
- 356
- 阅读权限
- 15
- 注册时间
- 2008-3-17
- 最后登录
- 2014-6-26
- 在线时间
- 1505 小时
|
1.
Input : integer, favNumber string favColor
Using : case
favNUmber Favcolor output
0< faNumber <= 50 yellow You will perform well in your exam.
0< faNumber <= 50 green You are smart and intelligent.
0< faNumber <= 50 Any other color You have great, passion in programming.
50< faNumber <= 80 yellow you will be very successful one day.
50< faNumber <= 80 green You will be a famous programmer one day.
50< faNumber <= 80 Any other color You will be rich and famous one day
faNumber > 80 Any color You will hold high position one day.
Example 1
Please enter an integer greater than or equal to 1:
30
Please enter your favourite color:
yellow
You will perform well in your exam.
Example 2
Please enter an integer greater than or equal to 1:
40
Please enter your favourite color:
green
You are smart and intelligent.
Example 3
Please enter an integer greater than or equal to 1:
50
Please enter your favourite color:
red
You have great, passion in programming.
Example 4
Please enter an integer greater than or equal to 1:
60
Please enter your favourite color:
yellow
you will be very successful one day.
Example 5
Please enter an integer greater than or equal to 1:
80
Please enter your favourite color:
green
You will be a famous programmer one day.
Example 6
Please enter an integer greater than or equal to 1:
70
Please enter your favourite color:
red
You will be rich and famous one day
Example 7
Please enter an integer greater than or equal to 1:
90
Please enter your favourite color:
yellow
You will hold high position one day.
Example 8
Please enter an integer greater than or equal to 1:
90
Please enter your favourite color:
green
You will hold high position one day.
Example 9
Please enter an integer greater than or equal to 1:
90
Please enter your favourite color:
red
You will hold high position one day.
2. except using case to do, still got what mode can use?
我真的不会做。。。快要做到一个头两个大了。。。
请各位大大帮帮忙。。。。。 |
|