C# 알고리즘 코드카타
38. 직사각형 별찍기
잼잼재미
2023. 11. 20. 11:53
using System;
public class Example
{
public static void Main()
{
String[] s;
Console.Clear();
s = Console.ReadLine().Split(' ');
int a = Int32.Parse(s[0]);
int b = Int32.Parse(s[1]);
for (int i = 0; i < b; ++i)
{
for (int j = 0; j < a; ++j)
{
Console.Write("*");
}
Console.WriteLine();
}
}
}