package course; public class Getifelse { public static void main(String[] args) { int math=95; int english=56; if(math>60){ System.out.println("数学及格了"); }else{ System.out.println("数学不及格"); } if(english>60){ System.out.println("英语及格了"); }else{ System.out.println("英语不及格"); } } }
时间: 2024-11-07 22:54:17