Hello! I can't seem to figure out this nested loop pattern C++ : //DrawTriangle("VOTE", true)
E
TE
OTE
VOTE

I figured out:

//DrawTriangle("VOTE", false)
VOTE
OTE
TE
E


Here's what I got so far:

                cout << "Please enter your WORD: ";
				cin >> word;
				cout << endl;

				int wordLength = word.length();
				
				//UP TRI WORD
				if (trDirection == 1)
				{
					//UP TRI TO DO
				}

				//DOWN TRI WORD 
				else if (trDirection == 2)
				{
					for (int row = 0; row <= wordLength; row++)
					{
						for (int i = row; i < wordLength; i++)
						{
							cout << word[i];
						}
						cout << endl;
					}
				}
			}

I appreciate any and all help with this. Thanks.