Added exercise 4.28
[Cpp-Deitel-Exercises.git] / Chapter-2 / 2-22.cpp
blobb40adca5458273aa0b7aa2a708977265323ea146
1 /* C++ How to Program, 9/E, by Paul Deitel & Harvey Deitel.
3 Solution of exercise 2.22:
4 What does the following code print?
6 cout << "*\n**\n***\n****\n*****" << endl;
8 Written by Juan Carlos Moreno (jcmhsoftware@gmail.com), 2022/01/03 */
10 #include <iostream>
12 using namespace std;
14 int main()
16 cout << "*\n**\n***\n****\n*****" << endl;
18 return 0;