Question: Write a program that prompts the user to enter a positive integer value and displays a pattern based on the entered value. Sample Outputs:
Write a program that prompts the user to enter a positive integer value and displays a pattern based on the entered value. Sample Outputs: Enter a positive integer (-1 to end): -3 You entered a wrong value!!! Enter a positive integer (-1 to end): 3 Enter a positive integer (-1 to end): 5 ** *** **** Enter a positive integer (-1 to end): 6 ** *** **** ***** Enter a positive integer (-1 to end): -2 You entered a wrong value!!! Enter a positive integer (-1 to end): 2 Enter a positive integer (-1 to end): 1 * Enter a positive integer (-1 to end): 0 You entered a wrong value!!! Enter a positive integer (-1 to end): -1 You have terminated the program!!!
Step by Step Solution
3.43 Rating (150 Votes )
There are 3 Steps involved in it
The simple Python ... View full answer
Get step-by-step solutions from verified subject matter experts
