Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 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- 53135Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started