~重享榮耀~
2006-10-03 15:37:29 UTC
int score;
String finalScore;
score=100;
if (score >=90 && score<=100)
finalScore= "甲";
else if (score >=80 && score<90)
finalScore= "乙";
else if (score >=70 && score<80)
finalScore= "丙";
else if (score >=60 && score<70)
finalScore= "丁";
else
finalScore= "戊";
請問~以上的程式~~我能用
?: <---這個運算式來完成嗎??
--
◎[1;31m龍[32m貓[33m資[34m訊[35m天[36m地[0m([1mbbs.mgt.ncu.edu.tw[0m)
◎[[1;33;46mvrgigi[0m]From: 218-160-86-163.dynamic.hinet.net
String finalScore;
score=100;
if (score >=90 && score<=100)
finalScore= "甲";
else if (score >=80 && score<90)
finalScore= "乙";
else if (score >=70 && score<80)
finalScore= "丙";
else if (score >=60 && score<70)
finalScore= "丁";
else
finalScore= "戊";
請問~以上的程式~~我能用
?: <---這個運算式來完成嗎??
--
◎[1;31m龍[32m貓[33m資[34m訊[35m天[36m地[0m([1mbbs.mgt.ncu.edu.tw[0m)
◎[[1;33;46mvrgigi[0m]From: 218-160-86-163.dynamic.hinet.net