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

1 Expert Approved Answer
Step: 1 Unlock 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 Databases Questions!