Search for question
Question

Exercise 3) (4 pts)

Write a program named "Exercise3.cpp", which reads one integer and displays a pyramid

shape with *** (asterisk)s. The height (# of rows) of pyramid should be the input value. The

following shows two test cases. Each line breaks once the last "*" is printed out. In other

words, there is no space after the last "*".

Type one integer here.

3

Type one integer here.

5

***

Fig: 1