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, 22.06.2019 11:00
Eva has many contacts on the professional networking site she uses which contacts are considered second degree
Answers: 3
question
Computers and Technology, 23.06.2019 00:10
My has been slow anyone else’s ?
Answers: 1
question
Computers and Technology, 23.06.2019 00:30
Quick pl which one of the following is considered a peripheral? a software b mouse c usb connector d motherboard
Answers: 1
question
Computers and Technology, 23.06.2019 17:00
The camera still is bad even with the new iphone xr and especially in low light it is even worst because you can see the pixels more if its in low light. if all you apple customers want apple to fix this then lets fill there feedback with complaints about the
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
Chemistry, 28.01.2020 22:42
question
Mathematics, 28.01.2020 22:42