Computers and Technology
Computers and Technology, 05.10.2019 00:10, wellllm

Write a program that asks the user to enter the size of a triangle (an integer from 1 to 50). display the triangle by writing lines of asterisks. the first line will have one asterisk, the next two, and so on, with each line having one more asterisk than the previous line, up to the number entered by the user. on the next line write one fewer asterisk and continue by decreasing the number of asterisks by 1 for each successive line until only one asterisk is displayed. (hint: use nested for loops; the outside loop controls the number of lines to write, and the inside loop controls the number of asterisks to display on a line.) for example, if the user enters 3, the output would be:

answer
Answers: 3

Other questions on the subject: Computers and Technology

image
Computers and Technology, 21.06.2019 21:00, ziahziah
Which function key is used to enable the spelling & grammar function in a word processing program such as microsoft word?
Answers: 3
image
Computers and Technology, 21.06.2019 22:30, kivking12
The blank is type of decision-maker who over analyzes information
Answers: 3
image
Computers and Technology, 23.06.2019 13:30, alannaamarriee
Jace needs to answer a question on square roots to win a quiz. how can he use a spreadsheet to find the square root of 786? a. use the functions round and count b. create a table and chart c. use the function sqrt d. use the function now
Answers: 3
image
Computers and Technology, 24.06.2019 16:30, officialrogerfp3gf2s
Pressing the backspace key deletes the text to the of the insertion point. the left or the right?
Answers: 1
Do you know the correct answer?
Write a program that asks the user to enter the size of a triangle (an integer from 1 to 50). displa...

Questions in other subjects:

Konu
Health, 06.05.2020 01:22