package cn.bpqn.demo04;
import java.util.Scanner;
public class Lianxi9 {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
System.out.println("请输入成绩:");
double score = sc.nextDouble();
if(score>=90){
System.out.println('A');
}
else if(score>60&&score<90){
System.out.println('B');
}
else{
System.out.println('C');
}
}
}
这是最最最简单的if结构了哦!
一键三连啊,兄弟姐妹们!!!!!