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

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!