Question: In C++, write a function named triangle to output the following pattern: The function should have one parameter, x, which denotes the number of rows
In C++, write a function named triangle to output the following pattern:

The function should have one parameter, x, which denotes the number of rows (and columns) to be printed.
Transcribed image text
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
