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 22:40
When you type the pwd command, you notice that your current location on the linux filesystem is the /usr/local directory. answer the following questions, assuming that your current directory is /usr/local for each question. a. which command could you use to change to the /usr directory using an absolute pathname? b. which command could you use to change to the /usr directory using a relative pathname? c. which command could you use to change to the /usr/local/share/info directory using an absolute pathname? d. which command could you use to change to the /usr/local/share/info directory using a relative pathname? e. which command could you use to change to the /etc directory using an absolute pathname? f. which command could you use to change to the /etc directory using a relative pathname?
Answers: 3
question
Computers and Technology, 23.06.2019 13:10
What is domain name system (dns)? allows dynamic ip address allocation so users do not have to have a preconfigured ip address to use the network converts ip addresses into domains, or identifying labels that use a variety of recognizable naming conventions the efficient coexistence of telephone, video, and data communication within a single network, offering convenience and flexibility not possible with separate infrastructures the integration of communication channels into a single service
Answers: 2
question
Computers and Technology, 23.06.2019 14:00
What is html ? give a small description about html
Answers: 2
question
Computers and Technology, 23.06.2019 22:00
Jackson, who works in the finance department of a company, is holding a seminar for other employees on how to file taxes. only three employees sign up to attend the seminar. which device can he use to share his presentation with a group of three employees?
Answers: 1
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, 22.04.2021 15:10
question
Spanish, 22.04.2021 15:10
question
Mathematics, 22.04.2021 15:10
question
Mathematics, 22.04.2021 15:10
question
Chemistry, 22.04.2021 15:20
question
Social Studies, 22.04.2021 15:20
Questions on the website: 13722360