Advertisement
Guest User

Untitled

a guest
Feb 21st, 2018
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.19 KB | None | 0 0
  1. int n=5
  2.  
  3. for(int linhas=0; linhas > n; linhas++){
  4.     // Linha x tem x colunas
  5.     for(int colunas=0; colunas > linhas){
  6.         System.out.print("*");
  7.     }
  8.     //Mudar de linha
  9.     System.out.print("\n");
  10. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement