목차
없음
본문내용
using System;
using System.Collections.Generic;
using System.Text;
namespace Lotto
{
class Lotto
{
static void Main(string[] args)
{
int[] num = new int[6];
num = RandomNumber.RandomNum();
string str;
bool iteration = true;
while (iteration)
{
num = RandomNumber.RandomNum();
for (int i = 0; i < num.Length; i++)
{
Console.Write("{0}번째 번호 출력 : ", i + 1);
Console.WriteLine(num[i]);
}
Console.Write("새로운 번호를 출력하시겠습니까?(Y/N) ==>");
str = Console.ReadLine();
Console.WriteLine();
iteration = YesNoCheck(str);
}
}
using System.Collections.Generic;
using System.Text;
namespace Lotto
{
class Lotto
{
static void Main(string[] args)
{
int[] num = new int[6];
num = RandomNumber.RandomNum();
string str;
bool iteration = true;
while (iteration)
{
num = RandomNumber.RandomNum();
for (int i = 0; i < num.Length; i++)
{
Console.Write("{0}번째 번호 출력 : ", i + 1);
Console.WriteLine(num[i]);
}
Console.Write("새로운 번호를 출력하시겠습니까?(Y/N) ==>");
str = Console.ReadLine();
Console.WriteLine();
iteration = YesNoCheck(str);
}
}
소개글