SWEA - [d1] 2046 스탬프 찍기

Esther·2022년 11월 19일
0

SWEA

목록 보기
9/46

주어진 숫자만큼 # 을 출력해보세요.

주어질 숫자는 100,000 이하다.

입력
: 3

출력
: ###

package prc_d1;

import java.util.Scanner;

public class P2046 {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int num = sc.nextInt();
		for (int i = 0; i < num; i++) {
			System.out.print("#");
		}

	}

}

0개의 댓글