We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7bfd322 commit df83069Copy full SHA for df83069
Pattern00033.c
@@ -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