subject
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:

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 21:30
The graph shows median weekly earnings for full-time workers according to education level. which can you not conclude?
Answers: 2
question
Computers and Technology, 23.06.2019 15:30
The processing of data in a computer involves the interplay between its various hardware components.
Answers: 1
question
Computers and Technology, 24.06.2019 18:30
What is the local portion of the e-mail address below? [email protected] a.) @ b.) biz c.) gumchewer d.) twrigley
Answers: 1
question
Computers and Technology, 24.06.2019 22:30
To add additional commands to the quick access toolbar, a user can navigate to the view. backstage status bar design file
Answers: 2
You know the right answer?
Write a program that asks the user to enter the size of a triangle (an integer from 1 to 50). displa...
Questions
question
Mathematics, 12.10.2021 08:50
question
Biology, 12.10.2021 08:50
question
History, 12.10.2021 08:50
question
Mathematics, 12.10.2021 08:50
question
Mathematics, 12.10.2021 08:50
question
Mathematics, 12.10.2021 08:50
question
Mathematics, 12.10.2021 08:50
Questions on the website: 13722363