using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Helloworld2
{
class Program
{
enum estate
{
Idle, Hit, Die
}
static void Main(string[] args)
{
Random rand = new Random();
int num = rand.Next(1, 7);
//만약에 임의의 값이 5보다 같거나 크면 강화 성공을 출력한다
//그렇지 않다면 강화 실패를 출력한다
if ( num >= 5 ) //만약에 임이의 값이 5보다 같거나 크면
{
Console.WriteLine("강화 성공"); //강화 성공을 출력한다
}
else //그렇지 않다면
{
Console.WriteLine("강화 실패");
}
}
}
}
글을 차근차근 읽어보면 답이 보인다.