JAVA

xiaoxiao2021-02-28  30

import java.util.Scanner; public class javaclassmember {

public static void main(String[] args){

System.out.println("请输入成绩:"); Scanner scan = new Scanner(System.in); Float score = scan.nextFloat(); if(score<60){ System.out.println("不及格"); } else if (score<80){ System.out.println("及格"); } else if (score<90){ System.out.println("良好"); } else{ System.out.println("优秀");

}

}

转载请注明原文地址: https://www.6miu.com/read-1950068.html

最新回复(0)