MY CODE >> Fraction Divider
/*
    Tommy Martin
    MathTutor

    This program is intended to show someone how to devide fractions.
*/

#include<iostream>
#include<iomanip>

using namespace std;

int main() {

    // Initialize variables
    int num1, num2;
    int den1, den2;

    double totNum, totDen;
    double decTot;

    // Ask for user input
    Cout << "Enter first numerator: "; cin >> num1;
    cout << "Enter first denominator: "; cin >> den1;

    cout << "\nEnter second numerator: "; cin >> num2;
    cout << "Enter second denominator: "; cin >> den2;

    // Calculate totals
    totNum = num1 * den2;
    totDen = den1 * num2;

    decTot = totNum / totDen;

    // Output results
    cout << "\nStep 1.  Original equation:        " << num1 << "/" << den1 << " / " << num2 << 
            "/" << den2 << " = ?";
    cout << "\nStep 2.  Convert equation:         " << num1 << "/" << den1 << " * " << den2 << 
            "/" << num2 << " = ?";
    cout << "\nStep 3.  Perform Multiplication:   " << num1 << "/" << den1 << " * " << den2 << 
            "/" << num2 << " = " << totNum << "/" << totDen;
    cout << "\nStep 4.  Convert to Decimal:       " << totNum << "/" << totDen << 
            " = " << fixed << setprecision(4) << (totNum / totDen) << "\n\n";

    // Pause the program
    // system ("pause");

    // Return zero
    return 0;
}