/**
6. Repeat the previous exercise, but with a class
Number<T> where T can be any numeric type.
Try adding % to Number and see what happens when you
try to use % for Number<double> and Number<int>.
*/

#include "Number.h"

int main() {
    Number<int> x{7};
    Number<int> y{111};
    Number<double> z{1.5e-2};
    Number<double> w{2.5e-3};
    cout << "\nx = " << x
         << "\ny = " << y
         << "\ny+x = " << y+x
         << "\ny-x = " << y-x
         << "\ny*x = " << y*x
         << "\ny/x = " << y/x;
    x = y;
    cout << "\nAfter x = y, x = " << x;
    cout << "\nw = " << w;
    cout << "\nz = " << z
         << "\nw+z = " << w+z
         << "\nw-z = " << w-z
         << "\nw*z = " << w*z
         << "\ny/x = " << w/z;
    w = z;
    cout << "\nAfter w = z, w = " << w;
    Number<double> d, e;
    cout << "\nEnter Numbers: ";
    cin >> d >> e;
    cout << "\nYou entered " << d << " and " << e;
    cout << "\nd/e = " << d/e;
}



