Picolo666 / ADO-

scripts dos programas propostos na ADO do prof bruno.
1 stars 0 forks source link

ADO7 - 08 #59

Open Picolo666 opened 1 year ago

Picolo666 commented 1 year ago

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(); }