题目内容
下列程序中的错误,有( ):Scanner in=new Scanner(System.in);System.out.println("请输入您的幸运数字:");int n=in.nextInt();String result="";switch(n)case 1case 2:case 5:result="抱歉哦,运气就差那么一点点!";break;case 3:case 2:result="恭喜您中奖了!";break;default:result="请您再试试!";break;}System.out.println(result);
查看答案
搜索结果不匹配?点我反馈