subject

Problem statement: using loop, write a program that will ask the user to enter a character for left or right. then, the user will enter a number. the program should generate a ladder of x wherein the level depends on the number entered and the character should dictate whether it faces right or left.

sample:

character is r
number is 3

output
x
xx
xxx

character is r
number is 6
x
xx
xxx




character is l
number is 5

x
xx
xxx

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 17:00
Aisha has finished working on a word processing document that contains 15 pages. she has added some special elements in the first three pages, page 9 and 10, and page 15 from the document. she wants to print only these pages to see how they look. which option is the correct way to represent (in the print dialog box) the pages that aisha wants to print
Answers: 3
question
Computers and Technology, 23.06.2019 02:30
What is the power dissipated by a resistor with a current of 0.02 a and a resistance of 1,000 ? a. 200 w b. 20 w c. 0.4 w d. 4 w
Answers: 1
question
Computers and Technology, 24.06.2019 19:30
Which phrase is the best definition of a pivottable a a table containing data that is organized horizontally b a table used to calculate financial pivot values c a tool used to summarize data d a table containing specific formatting
Answers: 1
question
Computers and Technology, 25.06.2019 15:30
How can improving one’s reasoning skills also improve one’s performance on the job?
Answers: 1
You know the right answer?
Problem statement: using loop, write a program that will ask the user to enter a character for left...
Questions
question
Mathematics, 24.09.2019 12:50
question
Mathematics, 24.09.2019 12:50
question
Mathematics, 24.09.2019 12:50
question
History, 24.09.2019 12:50
Questions on the website: 13722367