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.

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.

LANGUAGE: C++

CHALLENGE:

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.

This content requires that you purchase additional access. The price is $2.99 or free for our Make Life Easier and 30 Days – Not Recurring members.

Purchase this Content ($2.99) Choose a Membership Level