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

1 Expert Approved Answer
Step: 1 Unlock 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 Databases Questions!