Skip to content

Commit 29d11a3

Browse files
authored
Create Pattern2.java
1 parent 473ab25 commit 29d11a3

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

Pattern Programs/Pattern2.java

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

0 commit comments

Comments
 (0)