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
Get step-by-step solutions from verified subject matter experts
