Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int contador1 = 0;
- int contador2 = 0;
- int tamanho = 5;
- while(contador1 < tamanho) {
- while(contador2 < tamanho) {
- System.out.print(" * ");
- contador2 ++;
- }
- contador1 ++;
- contador2 = 0;
- System.out.println();
- }
- Output (saída no console):
- * * * * *
- * * * * *
- * * * * *
- * * * * *
- * * * * *
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement