Skip to content

Commit f47f8f2

Browse files
authored
Update and rename Main.java to SimpleStarPattern.java
1 parent a75408a commit f47f8f2

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

Main.java renamed to SimpleStarPattern.java

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
/*
2+
3+
*
4+
* *
5+
* * *
6+
* * * *
7+
* * * * *
8+
9+
*/
10+
111
package com.company;
212

313
public class Main {
@@ -11,7 +21,7 @@ public static void main(String[] args) {
1121
// printing '*' in each column.
1222
for(int j=0;j<=i;j++)
1323
{
14-
System.out.print("* ");
24+
System.out.print(" * ");
1525
}
1626
System.out.println();
1727
}

0 commit comments

Comments
 (0)