1 package com.structure;
2
3 import java.util.Scanner;
4
5 public class ZuoYe02 {
6
7 public static void main(String[] args) {
8 Scanner meng00=new Scanner(System.in);
9 int score=meng00.nextInt();
10 int cj= score/10; //成绩除以10
11 switch (cj) {
12 case 10 :
13 System.out.println("父亲给她买一辆车");//==100分
14 break;
15 case 9 :
16 System.out.println("母亲给她买一部笔记本电脑");//=>90分
17 break;
18 case 8 :
19
20 case 7 :
21
22 case 6:
23 System.out.println("母亲给她买一部手机");//=>60分
24 break;
25
26
27 default:
28 System.out.println("没有礼物");//低于60分
29 break;
30 }
31 }
32
33 }