Skip to content

Commit a75408a

Browse files
authored
Add files via upload
1 parent a4fb215 commit a75408a

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

Main.java

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
package com.company;
2+
3+
public class Main {
4+
5+
public static void main(String[] args) {
6+
// write your code here
7+
int n = 5;
8+
//Outer Loop for number of Rows
9+
for(int i=0;i<n;i++)
10+
{
11+
// printing '*' in each column.
12+
for(int j=0;j<=i;j++)
13+
{
14+
System.out.print("* ");
15+
}
16+
System.out.println();
17+
}
18+
}
19+
}

0 commit comments

Comments
 (0)