#include <iostream>
#include <string>
// Allows user to choose how many words to enter (up to 100) User enters words, program displays words.
using namespace std;
int main()
{
int x = 0;
cout << "Enter number of words you would like to enter(Max is 100): ";
cin >> x; // User amount variable
cout << endl;
const int AMOUNT = 100; // const array max
string word[AMOUNT];
string input;
for (int i = 0;i < x; i++) // user controlled for-loop
{
cout << "Enter a word: ";
cin >> input; // user input for words
word[i] = input; // populate array
}
cout << "\nThe words you entered are:" << endl << endl; // iterates through array and prints items
int n= 0; // variable for line number
for (int i = 0; i < x; i++)
{
cout << n <<". " << word[i] << endl;
n++;
}
cout << endl << endl;
return 0;
}