187k views
2 votes
Write a recursive function that accepts an integer argument, n. The function should display n lines of text on the screen, with the first line showing n spaces followed by an asterisk, the second line displaying n-1 spaces followed by an asterisk, to the nth line which shows 1 space and 1 asterisk.

User Geonsu Kim
by
4.7k points

1 Answer

4 votes
I’m sorry Idk this I will try my best
User Alexandresoli
by
5.0k points