/********************************************************************************************
trileft.cpp
Jim Millard
for CO211/Fall 1999
Program that draws a left-hand right triangle (base up) with asterisks. The user will input
the height, and the program will do the rest...
********************************************************************************************/
#include <iostream>
#include <string>
using namespace std;
int main()
{
int height;
//inform and prompt the user
cout << endl
<< "This program will draw an inverted, left-justified right triangle from " << endl
<< "base to point using a height you provide."
<< endl << endl;
cout << "Enter the triangle's height in rows: ";
cin >> height;
cout << endl;
//output the triangle
for (int row = 0; row < height; row++)
{
cout << '\t';
for (int column = 0; column < height-row; column++)
cout << '*';
cout << endl;
}
return 0;
}