Question: Write a C++ program to display a triangle of stars according to the number of lines the user inputs. Special conditions: You cannot use any
Write a C++ program to display a triangle of stars according to the number of lines the user inputs. Special conditions:
You cannot use any loops (for, while, do while, or goto) in your program.
You have to use two recursive functions. One recursive function is to be called from another recursive function. (Hint: you can look at recursion (C++ code) in Moodle to get some ideas.) Example: (users input in bold) Enter number of lines: 6
*
* *
* * *
* * * *
* * * * *
* * * * * *
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
