Construct a class called rational number which takes two integers as input and their ratio represents a rational number. Write methods for adding, subtracting, and multiplying two rational numbers. Output should also be a rational number and you should state the values of its numerator and denominator. Do not calculate the value of ratio but output the numerator and denominator.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here