/* GreatestCommonFactorStarter.cpp
Written by ________________ <-- your name goes here
Date: 06/__/2017 <-- put the date here
Use an algorithm to compute the greatest common factor between two numbers.
*/
#include
#include
using namespace std;
int main()
{
int numer, denom; // declare variables numer and denom as ints
int gcf = 1; // initialize gcf variable to 1
int k = 2; // initialize k (counter variable) to 2
cout << "This program calculates the GCF\n\n";
cout << "Input the 1st value: ";
cin >> numer; // 1st input value from keyboard
cout << "Input the 2nd value: ";
cin >> denom; // 2nd input value from keyboard
// loop while k is less than or equal to numer and k is less than or equal to denom
{
// if both are evenly divisible by k?
// assign k to the gcd
// add 1 to k
} // end of looping
cout << "\nThe Greatest Common Factor of "
<< numer << " and " << denom << " is " << gcf // output the answer
<< endl << endl;
system("PAUSE"); // pause the answer so we can read it
return 0; // return control to the OS
}