1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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);
    }
 
}