-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpattern26.java
More file actions
63 lines (53 loc) · 1.33 KB
/
Copy pathpattern26.java
File metadata and controls
63 lines (53 loc) · 1.33 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
/*
* * * * * * == == == == == == == == == ==
* * * * * == == == == == == == == == ==
* * * * * * == == == == == == == == == ==
* * * * * == == == == == == == == == ==
* * * * * * == == == == == == == == == ==
* * * * * == == == == == == == == == ==
* * * * * * == == == == == == == == == ==
* * * * * == == == == == == == == == ==
* * * * * * == == == == == == == == == ==
== == == == == == == == == == == == == ==
== == == == == == == == == == == == == ==
== == == == == == == == == == == == == ==
== == == == == == == == == == == == == ==
== == == == == == == == == == == == == ==
*/
package Patterns;
import java.util.Scanner;
public class pattern26 {
public static void main(String[] args) {
int x = 1;
for (int i = 1; i <= 9; i++) {
if (x == 1) {
// System.out.print(" ");
x = 0;
} else {
System.out.print(" ");
x = 1;
}
if (x == 1) {
for (int j = 1; j <= 5; j++) {
System.out.print("* ");
}
for (int y = 1; y <= 10; y++) {
System.out.print(" ==");
}
} else {
for (int j = 1; j <= 6; j++) {
System.out.print("* ");
}
for (int y = 1; y <= 10; y++)
System.out.print("== ");
}
System.out.println();
}
for (int j = 1; j <= 5; j++) {
for (int i = 1; i <= 14; i++) {
System.out.print("== ");
}
System.out.println();
}
}
}