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

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 16:30, aryal191
Primary tech skills are skills that are necessary for success in online education
Answers: 3
image
Computers and Technology, 23.06.2019 17:00, Alexaisokay1
In which of the following ways can using test-taking tips you? a. you can focus on the information that you need to study. b. you will see the answers to the test. c. you will study more. d. you will be less organized.
Answers: 1
image
Computers and Technology, 24.06.2019 10:30, johngayden46
This device directs network traffic. bridge hub nic repeater router switch
Answers: 3
image
Computers and Technology, 24.06.2019 16:00, dareaalcaam111
What is a dashed line showing where a worksheet will be divided between pages when it prints? a freeze pane a split box a page break a print title
Answers: 1
You know the right answer?
Write a program that prints inverted trapezoids using the character '-'. The user will enter the num...

Questions in other subjects:

Konu
Mathematics, 12.12.2020 15:50
Konu
Mathematics, 12.12.2020 15:50
Konu
Mathematics, 12.12.2020 15:50