Skip to content

Commit df83069

Browse files
authored
Create Pattern00033.c
1 parent 7bfd322 commit df83069

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

Pattern00033.c

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

0 commit comments

Comments
 (0)