Skip to content

Commit 2221e6b

Browse files
authored
Create Pattern16.java
1 parent 1ef9add commit 2221e6b

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

Pattern Programs/Pattern16.java

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
/*
2+
3+
Pattern 16
4+
5+
A B C D
6+
E F G H
7+
I J K L
8+
M N O P
9+
10+
*/
11+
12+
public class Pattern16 {
13+
14+
public static void main(String[] args) {
15+
int alpha = 65;
16+
for (int i = 1; i <= 4; i++) {
17+
for (int j = 1; j <= 4; j++) {
18+
System.out.print((char)alpha + " ");
19+
alpha++;
20+
}
21+
System.out.println();
22+
}
23+
24+
}
25+
26+
}

0 commit comments

Comments
 (0)