(프로그래머스) 직사각형 별찍기

유지원·2022년 5월 29일
0

프로그래머스

목록 보기
53/66
post-thumbnail

문제 링크

https://programmers.co.kr/learn/courses/30/lessons/12969?language=javascript


Javascript

process.stdin.setEncoding('utf8');
process.stdin.on('data', data => {
	const n = data.split(" ");
	const a = Number(n[0]), b = Number(n[1]);
	const row = '*'.repeat(a)
	for(let i =0; i < b; i++){
		console.log(row)
	}
});
profile
👋 https://github.com/ujw0712

0개의 댓글