728x90
반응형
Java
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();
}
}
}
Python
a, b = map(int, input().strip().split(' '))
print(("*" * a + "\n") * b)
728x90
반응형