第四行括號(hào)里不用score,直接輸入考試成績(jī)68怎樣
public class HelloWorld{ ??
? ? ? public static void main(String[] args) {?
? ? ? ? ? ? ?int score=68;?
? ? ? ? ? ? ?String mark =(68>=60) ? "及格":"不及格";?
? ? ? ? ? ? ?System.out.println("考試成績(jī)?nèi)绾危?+mark);
? ? ? }
?}
2016-05-11
在這題沒(méi)有問(wèn)題。但是如果是要求任意輸入的值是否超過(guò)60的話,score這一變量是要設(shè)置的。
2016-06-13
我也是直接輸入68的,而且我很好奇,上上節(jié)不是還說(shuō)>=只支持操作數(shù)是數(shù)值類型的嗎?score>=60這里把score放在右邊不會(huì)有什么問(wèn)題嗎?
2016-05-11
在這一題沒(méi)問(wèn)題