We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a586f42 commit 5343a08Copy full SHA for 5343a08
demo.java
@@ -1,24 +1,16 @@
1
-public class demo
2
-{
3
- public static void main(String[] args)
4
- {
5
- for(int i=0;i<5;i++)
6
7
- for(int j=0;j<3;j++)
8
9
- if(((i+2)%2==0 && j==0) || ((i+2)%2==0 &&j==2))
10
11
- System.out.print(" ");
12
- }
13
- else
14
15
- System.out.print("*");
+public class demo {
+ public static void main(String[] args) {
+ for (int i = 0; i < 5; i++) {
+ for (int j = 0; j < 3; j++) {
+ if (((i + 2) % 2 == 0 && j == 0) || ((i + 2) % 2 == 0 && j == 2)) {
+ System.out.print(" ");
+ } else {
+ System.out.print("*");
16
}
17
18
19
System.out.println();
20
21
-
22
23
24
0 commit comments