Question: Write program for this using C++ code Wite a program that will print a triangle of astoribks of size n, called Triangle In this program
Wite a program that will print a triangle of astoribks of size n, called Triangle In this program you should use nested for loops (a for loop wilhin another lor loop) and only print out one asterisk out at a time Sample output Enter the nunber of asterisks for the base of the triangle:s Enter the nunber of asterisks for the base of the triangle: Hints Your inner loop will control the drawing of a single row Your outer loop will control how many rows are drawn Take note of pattons * See how tho first row has-tho second row has 2 "n tho third cow has 3-s? Remember how to print a new line using cout
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
