I am having trouble with getting the math from paper to C++ code ... I am asking for user input for a numerator and a denominator .... the function then treats the variables as a fraction and reduces it to the lowest term ..... I had some math in the program and have since started over as I could not get it working .... please help ... if I can get help with the correct coding for the math equation I should be able to get the rest working ... here is what I have so far...

```
#include <iostream>
#include <cmath>
using namespace std;
void getNumbers(int& input1, int& input2);
//Reads two intergers fromt the keyboard.
//void
void showResults(int output1, int output2);
//Shows the values of variable1 and variable2, in that order.
int main()
{
int firstNum, secondNum;
getNumbers(firstNum, secondNum);
showResults(firstNum, secondNum);
return 0;
}
void getNumbers(int& input1, int& input2)
{
cout << "Enter the numerator and denominator: ";
cin >> input1
>> input2;
}
void showResults(int output1, int output2)
{
cout << " In numerator and the denominator are: "
<< output1 << " " << output2 << endl;
}
```