Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Scanner;
- public class Loops {
- public static void main(String[] args) {
- final int SIZE = 8;
- for (int row = 1; row <= SIZE; row = row + 1) {
- for (int col = 1; col <= SIZE - row; col = col+ 1) {
- System.out.print("*");
- }
- System.out.println();
- }
- }
- }
Add Comment
Please, Sign In to add comment