Write a program to do rational number arithmatic, representing each rational number as a class that has instance variables for the numerator and the denomonator
November 5th, 2022
Write a program to do rational number arithmatic, representing each rational number as a class that has instance variables for the numerator and the denomonator. The program should read and display all rational numbers in the format a/b, or simply a if the denominator is 1.