Unity/수업내용(C#)
[3.10] 구구단 출력
ljw4104
2021. 3. 10. 12:48
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Study01
{
class Program
{
static void Main(string[] args)
{
Console.Write("정수 입력 : ");
int data = Convert.ToInt32(Console.ReadLine());
for (int i = 1; i < 10; i++)
{
Console.WriteLine("{0} * {1} = {2}", data, i, data * i);
}
}
}
}