Question: Is Multiple Overview For this daily, write a program that will determine if a positive number is a multiple of another positive number. A CPP
Is Multiple
Overview
For this daily, write a program that will determine if a positive number is a multiple of another positive number.
A CPP file ismultiple.cpp has been provided. It contains the declaration for two integer variables num and
num and code that will ask the user to enter two integer values.
Add code to int main that will first determine if num and num both contain positive values. If either value is
not positive, display Invalid input: one or both values is not positive If both values are positive, determine
if num is a multiple of num If num is a multiple of num display num is a multiple of num
Otherwise, display num is NOT a multiple of num
num is the value the variable num contains and num is the value the variable num contains.
Print a newline at the beginning and end of the output.
File You Must Submit
Place the completed program code in a source file named ismultiple.cpp
Output
The output that is produced by the program will vary based on the values that are entered when the program is
executed. The output that is shown below is what the program will produce when it is run in an environment
such as Dev C or XCode. When it is run through the Auto Grader, the portion that asks for the integer values
WILL NOT show the values that are entered.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
