Medium
Printable Objects
Write a
Fraction-like class Frac with numerator and denominator, stored in lowest terms, and a __str__ that shows n/d. Read n and d (d > 0) and print the object.Input
Two integers.
Output
n/d in lowest terms.
Sample 1
Input
6 8
Output
3/4
Sample 2
Input
3 9
Output
1/3
Output appears here