I have an assignment that asks me to:
1. create a button
2. when that button is clicked, an inputBox will appear to ask the user how many words they will enter.
3. then display an inputBox for each word.
For example, when the first inputBox appears, I enter "3" (meaning that I will enter 3 words).
Then there should be 3 more inputBox (each inputBox allows me to enter only 1 word)
After I enter the third word, there will be no more inputBox.
How can we FLAG (stop) the inputBox, or let the inputBox know when to stop showing up?