Skip to content

Commit

Permalink
TKAPattern03
Browse files Browse the repository at this point in the history
  • Loading branch information
riteshgaigawali committed Oct 19, 2024
1 parent 25721a8 commit 2fc832d
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions problems/TKAPattern03.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
// Printing Pattern with Stars in a Left Diagonal
package problems;

class TKAPatter {
public static void main(String[] args) {
System.out.println();

int NUM_OF_ROWS = 3;

for (int i = 0; i < NUM_OF_ROWS; i++) {
for (int j = 0; j <= i; j++) {
System.out.print("* ");
}
System.out.println();
}

}
}

0 comments on commit 2fc832d

Please sign in to comment.