Added exercise 4.28
[Cpp-Deitel-Exercises.git] / Chapter-2 / 2-21.cpp
blob54cb27c8a6b0440db5147fad6e8286e324d96e86
1 /* C++ How to Program, 9/E, by Paul Deitel & Harvey Deitel.
3 Solution of exercise 2.21:
4 (Displaying Shapes with Asterisks) Write a program that prints a box, an oval,
5 an arrow and a diamond as follows:
7 Written by Juan Carlos Moreno (jcmhsoftware@gmail.com), 2022/01/03 */
9 #include <iostream>
11 using namespace std;
13 int main()
15 cout << "********* *** * *" << endl;
16 cout << "* * * * *** * *" << endl;
17 cout << "* * * * ***** * *" << endl;
18 cout << "* * * * * * *" << endl;
19 cout << "* * * * * * *" << endl;
20 cout << "* * * * * * *" << endl;
21 cout << "* * * * * * *" << endl;
22 cout << "* * * * * * *" << endl;
23 cout << "********* *** * *" << endl;
25 return 0;