Question: Use a C++ program to run your code that prompts the user to enter an integer, greater or equal to 2, and displays its largest
Use a C++ program to run your code that prompts the user to enter an integer, greater or equal to 2, and displays its largest factor other than itself.
To answer for this question, It is required that you use following two functions to complete the assignment.
a. // Prompts the user to enter an integer: number >=2
void getNumber( int& number);
b. // returns the largest factor of n other than itself
int getLargestNonSelfFactor(int n);
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
