-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathB.java
More file actions
41 lines (27 loc) · 919 Bytes
/
B.java
File metadata and controls
41 lines (27 loc) · 919 Bytes
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
public class B {
public static void main(String args[]){
for(int x=0;x<9;x++){
for(int y=0;y<10;y++){
if((x%2==1 && ( (y>1 && y<7) || (y>8) )) || ((x==2 || x==6) && y>1 && y<8) || (x%4==0 && y>6)){
System.out.print(" ");
}
else if(y==0 || y==1){
System.out.print("*");
}
else{
System.out.print("#");
}
// if(y==1 || y==0){
// System.out.print("*");
// }
// // else if((y>1 && y<7 && (x==0 || x==4 || x==8)) || (y-x==7 || y-x==)){
// System.out.print("#");
// }
// else{
// System.out.print(" ");
// }
}
System.out.println();
}
}
}