We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5816861 commit 42124c4Copy full SHA for 42124c4
Pattern Programs/Pattern9.java
@@ -0,0 +1,31 @@
1
+/*
2
+
3
+Pattern 9
4
5
+ *********
6
+ * *
7
8
9
+ *
10
11
+*/
12
13
+public class Pattern9 {
14
15
+ public static void main(String[] args) {
16
+ for (int i = 1; i <= 5; i++) {
17
+ for (int k = 1; k <= i; k++) {
18
+ System.out.print(" ");
19
+ }
20
+ for (int j = 1; j <= 11-(2*i); j++) {
21
+ if(i==1 || i==5 || j==1 || j == 11-(2*i))
22
+ System.out.print("*");
23
+ else
24
25
26
+ System.out.println();
27
28
29
30
31
+}
0 commit comments