Skip to content

Commit 0406c9e

Browse files
unknownunknown
authored andcommitted
feat:evoriea patter 1 problem
1 parent 84d3260 commit 0406c9e

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

port_pattern_1.java

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

0 commit comments

Comments
 (0)