# IF的单选择结构
package com.xin.struct;
import java.util.Scanner;
public class IFDemo01 {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
System.out.println("请输入成绩:");
double score = scanner.nextDouble();
if (score <= 60){
System.out.println("没有及格请下次努力吧!!!");
}else{
System.out.println("恭喜你及格了");
}
if (score >= 100){
System.out.println("Very,Good");
}else {
double x = 100 - score;
System.out.println("你离100分还差"+x+"分");
}
System.out.println("程序结束欢迎下次使用");
scanner.close();
}
}