I got other version of that program that asks the user the high of the triangle, and the symbol that he/she wants to use to print the triangle, I also wrote a simple menu
just to show;


...