Skip to content

Commit 473ab25

Browse files
authored
Create Pattern1.java
1 parent 8944462 commit 473ab25

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

Pattern Programs/Pattern1.java

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
/*
2+
3+
Pattern 1
4+
5+
*
6+
**
7+
***
8+
****
9+
*****
10+
11+
*/
12+
13+
public class Pattern1 {
14+
15+
public static void main(String[] args) {
16+
for (int i = 1; i <= 5; i++) {
17+
for (int j = 1; j <= i; j++) {
18+
System.out.print("*");
19+
}
20+
System.out.println();
21+
}
22+
23+
}
24+
25+
}

0 commit comments

Comments
 (0)