#include using namespace std; // Project Rational // File main.cpp #include "Rational.h" int main() { Rational a, b(7), c(1,2), d(1,3), e(3,6); Rational f, g, h; a.print(); cout << endl; b.print(); cout << endl; c.print(); cout << endl; cout << a << " " << b << " " << c << endl; cout << (b == c) << " " << (c == e) << endl; f = c + d; g = b * c; cout << f << " " << g << endl; return EXIT_SUCCESS; } // Output: // 0/1 // 7/1 // 1/2 // 0/1 7/1 1/2 // 0 1 // 5/6 7/2