294. 직사각형 별찍기

김해준's avatar
Jan 20, 2026
294. 직사각형 별찍기

사용언어 : C#

문제
notion image
풀이
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(""); } } }
notion image
Share article