Write a for loop that computes the following sum: 5+10+15+20 + ... + 485+490+495+500. The sum should be placed in a variable sum that has already been declared and initialized to 0. In addition, there is another variable, num that has also been declared. You must not use any other variables.
+1
Answers (1)
Know the Answer?
Not Sure About the Answer?
Find an answer to your question 👍 “Write a for loop that computes the following sum: 5+10+15+20 + ... + 485+490+495+500. The sum should be placed in a variable sum that has ...” in 📗 Computers & Technology if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Home » Computers & Technology » Write a for loop that computes the following sum: 5+10+15+20 + ... + 485+490+495+500. The sum should be placed in a variable sum that has already been declared and initialized to 0.