Question: 1. Initialize a boolean variable to False to control the while loop below. 2. Implement a while loop to accept an integer number between 1
1. Initialize a boolean variable to False to control the while loop below. 2. Implement a while loop to accept an integer number between 1 and 19 from user. 2.1. If user did not enter an integer, prompt an error message and ask user to try again. 2.2. If the integer was not between 1 and 20, prompt an error message and ask user to try again. 3. Display the patterns of asterisks as follows:
Please enter an integer number between 1 and 19? two two is not an integer! Please enter an integer number between 1 and 19? 2.17 2.17 is not an integer! Please enter an integer number between 1 and 19? 1 * Please enter an integer number between 1 and 19? 4 * * * * * * * * * * * * * * * * * * * * * * * * *
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
