Question: Instructor note: Outline of code might look like this: //declare variables low, high, x //declare count and initialize to 0. used to count multiples of

Instructor note:
Outline of code might look like this:
//declare variables low, high, x //declare count and initialize to 0. used to count multiples of x //read input for low, high, x // for loop { //if a multiple of x, then increment count } //display count Write a program that takes three integers as input: low, high, and x. The program then outputs the number of multiples of x between low and high inclusive.
Ex: If the input is:
1 10 2
the output is:
5
Hint: Use the % operator to determine if a number is a multiple of x. Use a for loop to test each number between low and high.
Run your program as often as you'd like, before submitting for grading. Below, type any needed input values in the first box, then click Run program and observe the program's output in the second box
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
