Question: write a program that takes an integer input until the user enters an integer between 1 and 5 then draw a triangle whose height is

write a program that takes an integer input until the user enters an integer between 1 and 5 then draw a triangle whose height is in the pattern given in sample runs

there are dashes("-")at the beginning and end of each line (except for the last line).Additionally, you may assume that the user will always enter an integer as input

write a program that takes an integer input until the user enters

write in python

Enter the height: 4 --1--- --313-- -53135- 7531357 Enter the height: 5 ---1---- --313--- --53135-- - 7531357- 975313579 Enter the height: 6 Enter the height: -1 Enter the height: 0 Enter the height: 3 --1-- -313- 53135

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!