Question: 0. (This problem is worth 8 points) The objective is to write a C++ program that includes a function that takes two integers and determines

0. (This problem is worth 8 points) The objective is to write a C++ program that includes a function that takes two integers and determines if the first integer is a multiple-factor of the second. If it is not a factor at all, the function will return 0. If it is a single factor, it returns 1 , a double factor, it returns 2 , etc. For example, 2 is a triple factor of 8 , and the function would return 3 . The user should be asked to provide the two numbers and then have the function determine the multiplicity of factors, and write this value out. Validate your program for a few number pairs, including 2 and 8,3 and 81,3 and 3465
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
