java 判断成绩及格优秀

package com.minrisoft;


import java.util.Scanner;


public class Yuan {
public static void main(String[] args){
Scanner sc =new Scanner(System.in);
System.out.println("请输入成绩:");
int chengji=sc.nextInt();
if (chengji<0 || chengji>100){
System.out.println("胡落落!");
}
else if (chengji < 60){
System.out.println("回家种地去吧!");
}
else if (chengji >= 80){
System.out.println("牛逼!");
}
else{
System.out.println("还行吧,继续加油");
}
}
}

你可能感兴趣的:(java)