package test01;
import java.util.Random;
import java.util.Scanner;
public class test02 {
public static void main(String[] args) {
//1.生成中奖号码
int arr[] = creareNumber();
for (int i = 0; i < arr.length; i++) {
System.out.print(arr[i] + " ");
}
System.out.println();
//2.用户输入彩票号码
int user_arr[]=user_input();
for (int i = 0; i < user_arr.length; i++) {
System.out.print(user_arr[i]+" ");
}
//3.判断用户中奖情况
int RecCount=0;
int BlueCount=0;
for (int i = 0; i < user_arr.length-1; i++) {
int Rednum=user_arr[i];
for (int i1 = 0; i1 < arr.length-1; i1++) {
if(Rednum==arr[i1]){
RecCount++;
break;
}
}
}
双色球彩票系统
于 2023-05-09 08:31:56 首次发布