T.I.L
[24.05.28] 내일배움캠프 30일차 JAVA TIL - 직사각형 별찍기
HS DEVELOG
2024. 5. 29. 09:11
오늘 한 일
- 2주차 엔티티, myselectshop 실습 구현
- 11시 강의 듣기
import java.util.Scanner;
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();
}
}
}