Answer:
see explaination
Step-by-step explanation:
Program code:
//Include the needed header
#include <iostream>
using namespace std;
//Method main()
int main()
{
//Declare a variable for triangle character
char triangleCharacter;
//Declare a variable for triangle height
int triangleHeight;
//Prompt the user for traingle character
cout<<"Enter a character:";
//Read triangle character
cin>> triangleCharacter;
//Prompt the user for traingle height
cout<<"Enter traingle height:";
//Read triangle height
cin>> triangleHeight;
//Display first line
cout << triangleCharacter << " " << endl;
//Display second line
cout << triangleCharacter << " " << triangleCharacter << " " << endl;
//Display third line
cout << triangleCharacter << " " << triangleCharacter << " " << triangleCharacter << " " << endl;
//Return
return 0;
See attachment for program output