namespace 石头剪刀布
{
class Program
{
static void Main(string[] args)
{
Random random = new Random();
float wonTimes = 0;
int totalTimes = 0;
while (true)
{
//清除屏幕的垃圾
Console.Clear();
Console.WriteLine("您的战胜率是:{0}",wonTimes/totalTimes);
totalTimes++;
int
C#基础-019 随机数、清屏、退出、循环、条件语句综合实例
最新推荐文章于 2022-07-01 21:05:45 发布