subject

In this exercise, use the following variables : i, lo, hi, and result. Assume that lo and hi each are associated with an int and that result refers to 0.

Write a while loop that adds the integers from lo up through hi (inclusive), and associates the sum with result.

Your code should not change the values associated with lo and hi. Also, just use these variables : i, lo, hi, and result.

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 17:00
Annie is creating a corporate report for a company’s annual meeting. in the report, she wants to add the signature of various department heads. which device can annie use to capture signatures to include in the report? a. printer b. monitor c. e-reader d. digitizing tablet
Answers: 1
question
Computers and Technology, 22.06.2019 18:30
Which of the following commands is more recommended while creating a bot?
Answers: 1
question
Computers and Technology, 22.06.2019 19:20
Amedian in the road will be marked with a white sign that has a black arrow going to the left of the median. true false
Answers: 1
question
Computers and Technology, 24.06.2019 10:00
In which view can you see speaker notes?
Answers: 1
You know the right answer?
In this exercise, use the following variables : i, lo, hi, and result. Assume that lo and hi each ar...
Questions
question
Mathematics, 06.07.2019 23:00
question
History, 06.07.2019 23:00
question
Social Studies, 06.07.2019 23:00
question
Mathematics, 06.07.2019 23:00
question
Biology, 06.07.2019 23:00
Questions on the website: 13722367