Advertisement
Guest User

Untitled

a guest
Jun 25th, 2017
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.95 KB | None | 0 0
  1. Welcome to my rational number calculator!
  2. Please input a rational number.
  3. Numerator: 8
  4. Denominator: 24
  5.  
  6. --------------------------------------------
  7. The current result is: 1/3
  8. 1. Subtract a rational number from the current result;
  9. 2. Add a rational number to the current result;
  10. 3. Multiply the current result by a rational number;
  11. 4. Divide the current result by a rational number;
  12. 5. Take the reciprocal of the current result;
  13. 6. Quit
  14.  
  15. Please enter a selection: 1
  16. Please input a rational number operand.
  17. Numerator: 5
  18. Denominator: 3
  19.  
  20. --------------------------------------------
  21. The current result is: -4/3
  22. 1. Subtract a rational number from the current result;
  23. 2. Add a rational number to the current result;
  24. 3. Multiply the current result by a rational number;
  25. 4. Divide the current result by a rational number;
  26. 5. Take the reciprocal of the current result;
  27. 6. Quit
  28.  
  29. Please enter a selection: Please input a rational number operand.
  30. Numerator:
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement