import java.util.Scanner;
public class A01 {
/**
* @param args
*/
public static void main(String[] args) {
// TODO Auto-generated method stub
Scanner input = new Scanner (System.in);
System.out.println("请输入您的成绩:");
int Results=input.nextInt();
String show="";
if(Results==100){
show="父亲给他买车";
}else if (Results>=90){
show="母亲送笔记本电脑";
}else if (Results>=60){
show="送部手机";
}else{
show="什么都没有";
}
System.out.println("奖励物品:"+show);
}
}
转载于:https://blog.51cto.com/765133133/1420174