-
Notifications
You must be signed in to change notification settings - Fork 0
/
prac03.java
33 lines (33 loc) · 1.5 KB
/
prac03.java
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
public class prac03 {
public static void main(String[] args) {
StringBuilder o = new StringBuilder();
for (int i = 0; i < 45; i++) {
o.append("#");
}
System.out.println(o);
System.out.println("## ##");
System.out.println("## ##");
System.out.println("## ##");
System.out.println("## ##");
System.out.println("## ##");
System.out.println("## ##");
System.out.println(o);
String x = "#".repeat(45);
System.out.println(x);
String y = " ".repeat(41);
System.out.println("##" + y + "##");
System.out.println("##" + y + "##");
System.out.println("##" + y + "##");
System.out.println("##" + y + "##");
System.out.println("##" + y + "##");
System.out.println("##" + y + "##");
System.out.println(x);
System.out.println(("#").repeat(45));
System.out.println("##"+((" ").repeat(41))+"##");
System.out.println("##"+((" ").repeat(41))+"##");
System.out.println("##"+((" ").repeat(41))+"##");
System.out.println("##"+((" ").repeat(41))+"##");
System.out.println("##"+((" ").repeat(41))+"##");
System.out.println(("#").repeat(45));
}
}