Question: Create a pass by reference function call void displayPattern(int &) with one int parameter. Make the function call in int main(). Accept input into in

Create a pass by reference function call void displayPattern(int &) with one int parameter.

Make the function call in int main().

Accept input into in int main() of an integeger value called highNumber

The high number of the pattern is based upon the cin >> input of the user via the function (don't worry about validation).

Pass highNumber as a parameter in int Main to the function.

In function definition, using Nested Loops (a Loop within a Loop) display the following pattern.

*********

********

*******

******

*****

****

***

**

*

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!