package com.lovo;
import java.util.Scanner;
/**
* 7星彩随机N注选号程序
* @author 李睿
*
*/
public class Text05 {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
System.out.print("请输入要选多少注:");
if(sc.hasNextInt()){
int n = sc.nextInt();
if (n >0 ){
for(int i = 1; i <= n; i++){
for (int j = 1; j <= 7; j++){
int num = (int) (Math.random() * 10);
System.out.print(num + " ");
}
System.out.println();
}
}
else{
System.out.println("输入错误!!");
}
}
else {
System.out.println("输入错误!!");
}
sc.close();
}
}
7星彩随机N注选号程序
最新推荐文章于 2024-05-16 09:49:12 发布