Question: Using visual studio , create c++ program .Include the use of ++, += in a program that achieves the following using loops. (You can do

Using visual studio , create c++ program .Include the use of ++, += in a program that achieves the following using loops.

(You can do these in one program or each one in a small program, it doesnt matter.)

A. Create a loop that will output all the multiples of 5 that are greater than zero and less than 60 (do not include 60).

5, 10, 15, 20, 25, 30, 35, 40, 45, 50, 55

B. Create a loop that will output all the numbers less than 200 that are evenly divisible by both 2 and 7.

14 28

C. Create a loop that will calculate the sum of the multiples of 8 that are between 100 and 500. Output the sum only.

D. Create a loop that will output the sum of all odd numbers between 20 and 100.

Start with #include

#include

use printf

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!