var score = 60
switch score
{
case 0:
println("You got an egg!")
case 1..<60:
println("Sorry, you failed.")
case 60:
println("Just passed.")
case 61..<70:
println("Just so-so.")
case 70..<80:
println("Not Bad.")
case 80..<90:
println("Good Job!")
case 90..<100:
println("Great!")
case 100:
println("Perfect!")
default:
println("Something wrong with your score.")
}
海河之家
2014-10-29
举报
0/150
提交
取消