728x90
https://school.programmers.co.kr/learn/courses/30/lessons/181950
📝 나의 풀이
using System;
public class Example
{
public static void Main()
{
String[] input;
Console.Clear();
input = Console.ReadLine().Split(' ');
String s1 = input[0];
int a = Int32.Parse(input[1]);
for(int i=0; i<a; i++){
Console.Write(s1);
}
}
}
728x90
'코딩테스트 > [C#] 프로그래머스' 카테고리의 다른 글
[프로그래머스 | C# | Lv.0] 피자 나눠 먹기 (2) (0) | 2023.09.12 |
---|---|
[프로그래머스 | C# | Lv.0] 가위 바위 보 (0) | 2023.09.11 |
[프로그래머스 | C# | Lv.0] a와 b 출력하기 (0) | 2023.09.10 |
[프로그래머스 | C# | Lv.0] 문자열 출력하기 (0) | 2023.09.10 |
[프로그래머스 | C# | Lv.0] 덧셈식 출력하기 (1) | 2023.09.09 |