Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Welcome to my rational number calculator!
- Please input a rational number.
- Numerator: 8
- Denominator: 24
- --------------------------------------------
- The current result is: 1/3
- 1. Subtract a rational number from the current result;
- 2. Add a rational number to the current result;
- 3. Multiply the current result by a rational number;
- 4. Divide the current result by a rational number;
- 5. Take the reciprocal of the current result;
- 6. Quit
- Please enter a selection: 1
- Please input a rational number operand.
- Numerator: 5
- Denominator: 3
- --------------------------------------------
- The current result is: -4/3
- 1. Subtract a rational number from the current result;
- 2. Add a rational number to the current result;
- 3. Multiply the current result by a rational number;
- 4. Divide the current result by a rational number;
- 5. Take the reciprocal of the current result;
- 6. Quit
- Please enter a selection: Please input a rational number operand.
- Numerator:
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement