24.1k views
1 vote
Write a recursive function called DrawTriangle() that outputs lines of '*' to form a right side up isosceles triangle. C++ ONLY

User Slemesle
by
5.1k points

1 Answer

5 votes

Step-by-step explanation:

Write a recursive function called draw_triangle() that outputs lines of '*' to form a right side up isosceles triangle. Function draw_triangle() has one parameter, an integer representing the base length of the triangle. Assume the base length is always odd and less than 20. Output 9 spaces before the first '*' on the first line for correct formatting.

User Agent
by
6.2k points