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 

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

1 Expert Approved Answer
Step: 1 Unlock

The simple Python ... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!