//This program takes in two numbers, reduces them through Euclid's Algorithm, and then outputs the reduced numbers as a fraction
//Lucia, Geeth, and Owen
#include <iostream>
#include "Rational.h"
using namespace std;

int main()
{
  int numerator,
    denominator;

  //Prompts the user to enter the numerator and denominator and then inputs them into the variables
  cout << "Enter the numerator and denominator seperated by a space: ";
  cin >> numerator >> denominator;

  //Creates a Rational object that initializes with the user inputted inputs
  Rational rational(numerator, denominator);

  //Outputs the reduced form as a fraction by calling the overloaded rational << operator
  cout << "Reduced form: " << rational << endl;

  return 0;
}