subject

2- (20 points) a) Write a program segment that computes 1 2 3 ... (n - 1) n , where n is a data value that is entered by the user. b) Use an if statement that compares the computed sum above to (n * (n 1))/2 and displays a message that indicates whether the values are the same or different. c) What do you conclude for all values of n

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 23:00
Give an example of a case where a two-way handshake to establish a connection could leave one side of the connection live while the other side does not believe there is a connection.
Answers: 1
question
Computers and Technology, 22.06.2019 00:30
Jenny wants to look at row 345 and compare it to row 17. what can she do if she wanted to easily adjust to see both at once?
Answers: 3
question
Computers and Technology, 22.06.2019 09:00
Meenu wants to create a high quality drawing in a variety of colours. which device should she use for the same?
Answers: 1
question
Computers and Technology, 23.06.2019 07:30
What are ways to switch windows in excel? check all that apply. on the status bar, click the windows button, and then click the file name. on the task bar, click to display the excel jump list, and then click the file name. on the view tab, in the window group, click switch windows, and then click the file name. on the review tab, in the viewing group, click files, and then click the file name.
Answers: 1
You know the right answer?
2- (20 points) a) Write a program segment that computes 1 2 3 ... (n - 1) n , where n is a data valu...
Questions
question
Mathematics, 26.07.2020 01:01
question
Biology, 26.07.2020 01:01
Questions on the website: 13722360