Skip to content

Commit

Permalink
Create Triangle
Browse files Browse the repository at this point in the history
  • Loading branch information
masterrmind1 authored Oct 4, 2023
1 parent f02f70c commit 89e2d33
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions Star Pattern/Triangle
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
public class Triangle {
public static void main(String[] args) {
for (int i=1;i<=10;i++) {
for (int j = 1; j <=10-i; j++) {
System.out.print(".");
}
for (int k = 1; k <=i; k++) {
System.out.print("* ");
}
System.out.println();
}
}
}

0 comments on commit 89e2d33

Please sign in to comment.