System.out.printIn("我行我素购物管理系统 > 幸运抽奖");
Scanner input = new Scanner(System.in);
System.out.printIn("请输入4位会员号:");
int ka = input.nextInt();
//限制随机数
int sui = (int)(Math.random()*10);
if(ka){
int bai = ka/100%10;
if(bai=sui){
System.out.printIn(ka + "号客户是幸运客户,获得精美Mp3");
}else{
System.out.printIn(ka + "号客户是客户,谢谢您的支持!");
}
}else{
System.out.printIn("您输入的卡号错误!");
}