#1nclude <lostream.h>
#include "rational.h"
main()
{
Rational x, y(4), z(5,7);
x = 3;
cout << "x == " << x << end1;
cout << "y == " << y << end1;
cout << "z == " << z << end1;
cout <<"x+y ==" << x+y << endl;
cout << "y - z ==" << y - z << endl;
cout << "x * 2 ==" << x * 2 << endl;
cout << "2 / y ==" << 2 / y << endl;
return 0;
}
/* Output:
x == 3 / 1
y == 4 / 1
z == 5 / 7
x + y == 7 / 1
y - z == 23 / 7
x * 2 == 6 / 1
2 / y == 1 / 2
/* End of File */