https://programmers.co.kr/learn/courses/30/lessons/12969
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
import java.util.Scanner;
public class Solution {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int a = sc.nextInt();
int b = sc.nextInt();
for(int i =0 ; i<b ; i++){
for(int j=0 ; j <a ; j++)
System.out.print("*");
System.out.println();
}
}
}
|
cs |
'JAVA > ํ๋ก๊ทธ๋๋จธ์ค' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
ํ๊ท ๊ตฌํ๊ธฐ/java/level1/ํ๋ก๊ทธ๋๋จธ์ค (0) | 2020.02.10 |
---|---|
[ Java / Level 1] ์ฝ์์ ํฉ /programmers (0) | 2020.02.10 |
๋ฌธ์์ด์ ์ ์๋ก ๋ฐ๊พธ๊ธฐ/java/substring()/Integer.parseInt() (0) | 2020.02.07 |
์๋ฐ์๋ฐ์๋ฐ์๋ฐ์๋ฐ์?/Java/ํ๋ก๊ทธ๋๋จธ์ค (0) | 2020.02.07 |
์์ ์ฐพ๊ธฐ /ํ๋ก๊ทธ๋๋จธ์ค/์๋ฐ/level1/์๋ผํ ์คํ ๋ค์ค์ ์ฒด (0) | 2020.02.05 |