#include using namespace std; class Rational { private: int top; int bot; int gcd(int x, int y) { return (x==0)? y : gcd(y%x, x); } public: Rational(int t = 0, int b = 1) { int div = gcd(t,b );top = t/div, bot = b/div;} void print() {cout <