import java.util.Scanner;
public class Car {
public static void main(String[] args) {
//建立一个扫描器
Scanner input = new Scanner(System.in);
//提示用户输入数据
System.out.println("请输入您的车次; ");
//接收用户数据
int car = input.nextInt();
//显示用户输入的数据
System.out.println("您输入的车次是; "+car);
//判断其条件
switch (car/10){
case 0:
System.out.println("低级车位");
break;
case 1:
System.out.println("普通车位");
break;
case 2:
System.out.println("中级车位");
break;
case 3:
System.out.println("高级车位");
break;
case 4:
System.out.println("贵宾车位");
break;
case 5:
System.out.println("至尊车位");
break;
default:
System.out.println("皇家车位");
}
}
}
public class Car {
public static void main(String[] args) {
//建立一个扫描器
Scanner input = new Scanner(System.in);
//提示用户输入数据
System.out.println("请输入您的车次; ");
//接收用户数据
int car = input.nextInt();
//显示用户输入的数据
System.out.println("您输入的车次是; "+car);
//判断其条件
switch (car/10){
case 0:
System.out.println("低级车位");
break;
case 1:
System.out.println("普通车位");
break;
case 2:
System.out.println("中级车位");
break;
case 3:
System.out.println("高级车位");
break;
case 4:
System.out.println("贵宾车位");
break;
case 5:
System.out.println("至尊车位");
break;
default:
System.out.println("皇家车位");
}
}
}