-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbasicShapes.c
More file actions
23 lines (20 loc) · 1.57 KB
/
basicShapes.c
File metadata and controls
23 lines (20 loc) · 1.57 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#include <stdio.h>
/*
TODO:
Write a program that prints the following shapes with asterisks
********* *** * *
* * * * *** * *
* * * * ***** * *
* * * * * * *
* * * * * * *
* * * * * * *
* * * * * * *
* * * * * * *
********* *** * *
*/
int main(void) {
printf("%s", "*********\n* \t*\n*\t*\n* \t*\n* \t*\n* \t*\n*********\n\n");
printf("%s", " ***\n * *\n * *\n * *\n * *\n * *\n ***\n\n");
printf("%s", " *\n ***\n *****\n *\n *\n *\n *\n *\n\n");
printf("%s", " *\n * *\n * *\n * *\n * *\n * *\n *\n\n");
}