Can anybody help me solve this problem??Thank You.
Write a complete C++ program which contains a recursive function to print a triangle filled with character.
Write the prototype of prtTriangle as
void prtTriangle (int n, char ch);
By calling prtTriangle(9,'@') from the main function, the output is printed as follows:
@
@@
@@@
@@@@
@@@@@
@@@@@@
@@@@@@@
@@@@@@@@
@@@@@@@@@
@@@@@@@@@@
@@@@@@@@@
@@@@@@@@
@@@@@@@
@@@@@@
@@@@@
@@@@
@@@
@@
@