文件名称:TicketS
介绍说明--下载内容均来自于网络,请自行研究使用
一个彩票程序:30选7。随机(1~30之间)生成7个随机数,然后从键盘输入7个数,对比7个数是否与随机数有相同的。最后显示“中了几个号”。同时,如果中了7个号,显示一等奖;如果中了6个号,显示二等奖;如果中了5个号,显示三等奖。-A lottery program: 30 select 7. Random (between 1 to 30) to generate seven random numbers, and then enter the number 7 from the keyboard, compared to seven the number of random numbers are the same. Last Show in a few numbers. Also, if in the seven numbers, display the first prize If in the six numbers, display the second prize If in the 5 numbers displayed prize.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
TicketS\TicketS.java
TicketS