輸入成績來進行判斷- import java.util.Scanner;
- public class JPD02 {
- static Scanner keyboard = new Scanner(System.in);
-
- public static void main(String[] args) {
- int num = keyboard.nextInt();
- System.out.println();
- test(num);
- num = keyboard.nextInt();
- test(num);
- }
-
- public static void test(int num) {
-
- if(num>=60)
- {
- System.out.println("your pass");
- }
- System.out.println("End");
-
-
- }
- }
複製代碼 |