Create Rational class for performe arithmatic opertaion- Use integer value of numerator and the denominator.
- Provide constructor to enable class and this should define value
- Additonal of two Rational number
- Subtraction of Two Rational number
- Multiplication of two Rational number
- Division of Two Rational number
- print as a/b
Rational Number :2/3
Rational Number :3/5
Rational Number addtion:19/15
Rational Number Subtraction:1/15
Rational Number after multiplication :6/15
Rational Number after division :10/9
0 Comments
If you have any doubt and suggestion Please let me know