별찍기 -14
그냥 사각형만드는문제였다...!
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
for(int i=0; i<n; i++) {
for(int j=0; j<n; j++) {
System.out.print("*");
}
System.out.println();
}
sc.close();
}
}
'PROGRAMMING CODE > JAVA' 카테고리의 다른 글
[BAEKJOON] No.2522 JAVA (0) | 2021.10.14 |
---|---|
[BAEKJOON] No.2446 JAVA (0) | 2021.10.14 |
[BAEKJOON] No.2445 JAVA (0) | 2021.10.14 |
[BAEKJOON] No.2444 JAVA (0) | 2021.10.14 |
[BAEKJOON] No.2884 JAVA (0) | 2021.10.14 |