Posts Tagged ‘40502’
Assume the integer variables counter, low, high, and result have been declared and that low and high have been initialized. Write a For loop that adds the integers between low and high (inclusive), and stores the result in result. Your code should not change the values of low and high. Also, do not declare any additional variables — use only counter, low, high and result.
LANGUAGE: Visual Basic CHALLENGE: Assume the integer variables counter, low, high, and result have been declared and that low and high have been initialized. Write a For loop that adds the integers between low and high (inclusive), and stores the result in result. Your code should not change the values of low and high. Also, do…
Read MoreAssume the integer variables counter, low, high, and result have been declared and that low and high have been initialized. Write a For loop that adds the integers between low and high (inclusive), and stores the result in result. Your code should not change the values of low and high. Also, do not declare any additional variables — use only counter, low, high and result.
LANGUAGE: Visual Basic CHALLENGE: Assume the integer variables counter,low, high, and result have been declared and that low and high have been initialized. Write a For loop that adds the integers between low and high (inclusive), and stores the result in result. Your code should not change the values of low and high. Also, do not…
Read More