Question: 1. Write a python program that prompts the user to input a positive integer and outputs a triangle formed from the asterisk (*) of height
1. Write a python program that prompts the user to input a positive integer and outputs a triangle formed from the asterisk (*) of height equal to the entered number. Note: Use nested while loops.
sample output:
| Please Enter a number: 5 * ** *** **** ***** | Please Enter a number:10 * ** *** **** ***** ****** ******* ******** ********* ********** |
| Please Enter a number: 2 * ** | Please Enter a number:0 |
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
