# Example of Rational Numbers

## // probability one is 1 in 8rational p1 (1,8);

## // probability two is 2 in 3rational p2 (2, 3);

## // probably of both together is their productrational p3 = p1 * p2;

## // probably of either independent is their sumrational p4 = p1 + p2;

## // what is this probability?cout << "combined probability is " << p3 << endl;cout << "independent probability is " << p4 << endl