Question: Create a program that will output the multiples of 5. It muststart at 0 and show however many numbers the users asks for. Inaddition, the

Create a program that will output the multiples of 5. It muststart at 0 and show however many numbers the users asks for. Inaddition, the numbers should output on a new line every time amultiple of 100 is reached.

Prompt:

This program will output the multiples of 5. How many numbers doyou want to see? [user types: 42]

Output:

0 5 10 15 20 25 30 35 40 45 50 55 60 65 70 75 80 85 90 95100
105 110 115 120 125 130 135 140 145 150 155 160 165 170 175 180 185190 195 200
205

Notes and Hints:

1) You can use any type of loop, but there is an obvious choicehere.

Starter Code:

// CONSTANTS AND VARIABLES

// INPUT
std::cout << "This program will output themultiples of 5. How many numbers do you want to see? ";

std::cout << std::endl;

// LOOP and OUTPUT

std::cout <
std::cout <

Step by Step Solution

3.41 Rating (154 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

C program that outputs given number the multiples of 5 starting from 0 include int main decl... View full answer

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 Programming Questions!