第一个Java代码

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/Ericsson_Liu/article/details/85372322
import java.util.Scanner;

public class if_else{
	public static void main(String[] args){
		System.out.println("请输入你的成绩: ");
		Scanner in = new Scanner(System.in);
		int score = in.nextInt();
		if(score > 90){
				System.out.println("Good boy");
		}
		else{
				System.out.println("Test again");
		}
	}
}

猜你喜欢

转载自blog.csdn.net/Ericsson_Liu/article/details/85372322