Create a Class Rational for Performing Arithmetic



Create a Class Rational for Performing Arithmetic

Create a class Rational for performing arithmetic with fractions. The class has two private members numerator and denominator. The public member functions are supposed to add() subtract(), multiply(), divide() and print() the rational number. The value of numerator and denominator is passed by the user.

Asked by: Ishika Mittal on Oct 11, 2019.

Be the first to answer this Question !

Your Answer :

Name *:

Email *: (Required but will not be displayed)

» Your answers will be displayed only after manual approval.

Related Questions


No related questions found for this page.

Sponsored Links


Current Affairs

Quick Links