Question: 4. Write a bool function called IsFactor. The function has two type int parameters. It returns true if the first parameter divides into the second
4. Write a bool function called IsFactor. The function has two type int parameters. It returns true if the first parameter divides into the second without remainder and false otherwise. Here is a little main() function to go with IsFactor. Complete the call of IsFactor in the underlined space.
int main() {
int number, factor;
cout << "Enter two numbers: ";
cin >> number, factor;
if (_____________________________________) // call your function here
cout << factor << " is a factor of " << number << endl;
else cout << "NOT a factor!" << endl;
return 0; }
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
