subject

Write a program that prints inverted trapezoids using the character '-'. The user will enter the number of '-' characters on the first row and then the number of rows forming the trapezoid. For instance, an inverted trapezoid with 7 '-' characters in the first row and 3 rows forming the inverted trapezoid looks like: --- No row is allowed to have less than two '-' characters. You will write code to check for this. Determine the appropriate loop(s) to use (while loop or for loop) when a task requires looping. Study the tests below to help you understand program behavior. Use the following tests and your own tests to run against your solution in Develop mode. These are the same tests that your solution will be executed against when you submit your work in Submit mode. User input is in bold:

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 16:00
What does josh silverman name as the most important aspect of managing finances?
Answers: 2
question
Computers and Technology, 22.06.2019 08:00
What is the first step in creating a maintenance ?
Answers: 2
question
Computers and Technology, 23.06.2019 02:50
There’s only one game mode that stars with the letter ‘e’ in cs: go. which of the options below is it?
Answers: 1
question
Computers and Technology, 23.06.2019 10:00
Hey i just logged on and one of the moderators deleted a bunch of my answers to questions, even though the answers were right and the people it doesn't make sense but if anyone wants to talk about anything just message me lol (this is super random lol)
Answers: 1
You know the right answer?
Write a program that prints inverted trapezoids using the character '-'. The user will enter the num...
Questions
question
Biology, 27.08.2020 04:01
question
Mathematics, 27.08.2020 04:01
Questions on the website: 13722362