코딩공부/프로그래머스
[프로그래머스]Lv.1 직사각형 별찍기 C#
usingsystem
2023. 6. 15. 23:02
728x90
https://school.programmers.co.kr/learn/courses/30/lessons/12969
프로그래머스
코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요.
programmers.co.kr
소스코드
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();
}
}
}
728x90