Skip to content

Commit 66fa18e

Browse files
authored
Create Pattern00026.c
1 parent 54937b2 commit 66fa18e

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

Pattern00026.c

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
/*
2+
3+
11111
4+
2222
5+
333
6+
44
7+
5
8+
9+
*/
10+
11+
#include <stdio.h>
12+
int main()
13+
{
14+
int i, j;
15+
for (i = 1; i <= 5; i++)
16+
{
17+
for (j = 1; j <= 5; j++)
18+
{
19+
if (j<=6-i)
20+
printf("%d", i);
21+
else
22+
printf(" ");
23+
}
24+
printf("\n");
25+
}
26+
}

0 commit comments

Comments
 (0)