IF語句大顯身手之成績判斷

public class GradeIf {
	public static void main(String args[])
	{
		int Score = 80;
		if(Score>=85)
			System.out.println("A級");
		else
			if(Score>=70)
				System.out.println("B級");
			else
				if(Score>=60)
					System.out.println("C級");
				else
					if(Score<60)
						System.out.println("D級");


	}


}

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章