public static void main(String[] args) {
Scanner ler = new Scanner(System.in);
int base = ler.nextInt();
int alt = ler.nextInt();
retangulo(base, alt);
}
public static void retangulo (int base, int alt){
int largura = 1;
int altura = 1;
while (largura <= alt){
while (altura <= base){
System.out.print("*");
altura++;
}
altura = 1;
largura++;
System.out.println();
}
import java.util.Scanner; import java.util.Random;
class Main {
public static void main(String[] args) { Scanner ler = new Scanner(System.in); int base = ler.nextInt(); int alt = ler.nextInt();
retangulo(base, alt); } public static void retangulo (int base, int alt){ int largura = 1; int altura = 1; while (largura <= alt){ while (altura <= base){ System.out.print("*"); altura++; } altura = 1; largura++; System.out.println(); }