Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started