import java.util.Scanner;
public class IfDemo{
public static void main (String[]args){
System.out.println("欢迎登录腾讯互联抽奖系统");
System.out.println("请输入4位会员号码");
Scanner sc = new Scanner(System.in);
int a = sc.nextInt();
int b = (a/10);
int c = (b%10);
int d = (int)(Math.random()*10);
if (c <= d){
System.out.println("恭喜中奖");
}else{
System.out.println("谢谢支持");
}
}
}
登录腾讯互联抽奖系统的代码
最新推荐文章于 2023-09-11 21:50:34 发布