public class BiaoQianShiYong {
public static void main(String[] args) {
Scanner input = new Scanner(System.in);
OUT:
while (true){
System.out.print(“请输入星期数:(输入0结束)”);
int week = input.nextInt();
switch (week) {
case 0:
System.out.println(“不跑了”);
break OUT;
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;
case 6:
System.out.println(“跑步”);
break;
case 7:
System.out.println(“跑步”);
break;
}
}
}
}