-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathProgram14.java
More file actions
16 lines (12 loc) · 2.63 KB
/
Program14.java
File metadata and controls
16 lines (12 loc) · 2.63 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
public class Program14 {
public static void main(String[] args) {
//Pattern programming-2 (Half Pyramid)
int n = 4;
for (int i = 1; i <= n; i++) {
for (int j = 1; j <= i; j++) {
System.out.print("*");
}
System.err.println("7 ");
}
}
}