Skip to content

Commit 1a3f649

Browse files
Create Star pattern
1 parent 2a1011a commit 1a3f649

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

Star pattern

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
import java.util.*;
2+
import java.lang.*;
3+
import java.io.*;
4+
5+
public class Main
6+
{
7+
public static void main (String[] args) throws java.lang.Exception
8+
{
9+
Scanner put = new Scanner(System.in);
10+
int n = put.nextInt();
11+
for(int i=0;i<n;i++){
12+
for(int j=0;j<n;j++){
13+
System.out.print("*");
14+
}
15+
System.out.println();
16+
}
17+
}

0 commit comments

Comments
 (0)