Guest User

Untitled

a guest
Jun 24th, 2018
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.29 KB | None | 0 0
  1. import java.util.Scanner;
  2.  
  3. public class Loops {
  4.  
  5.     public static void main(String[] args) {
  6.        
  7. final int SIZE = 8;
  8.     for (int row = 1; row <= SIZE; row = row + 1) {
  9.             for (int col = 1; col <= SIZE - row; col = col+ 1) {
  10.                 System.out.print("*");
  11.             }
  12.                 System.out.println();
  13.     }
  14.     }
  15.  
  16. }
Add Comment
Please, Sign In to add comment