Skip to content

Commit 7a7c7ff

Browse files
committed
print pattern 12345 c-basics
1 parent f8b7b98 commit 7a7c7ff

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

pattern12345.c

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#include<stdio.h>
2+
void main()
3+
{
4+
int i,j;
5+
for(i=1;i<=5;i++)
6+
{
7+
for(j=1;j<=i;j++)
8+
{
9+
printf("%d",j);
10+
}
11+
printf("\n");
12+
}
13+
}

0 commit comments

Comments
 (0)