Answer to Question #54816 in Python for john
Question #54816
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.
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.
Expert's answer
Not answered
Need a fast expert's response?
Submit orderand get a quick answer at the best price
for any assignment or question with DETAILED EXPLANATIONS!
Comments
Leave a comment