Advertisement
Guest User

Untitled

a guest
Jun 25th, 2017
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.62 KB | None | 0 0
  1. void printRational(int n, int d)
  2. {
  3. printf("\n--------------------------------------------\n");
  4. reduceResult();
  5. printf("The current result is: %d/%d\n", n, d);
  6. printf("1. Subtract a rational number from the current result; \n");
  7. printf("2. Add a rational number to the current result; \n");
  8. printf("3. Multiply the current result by a rational number; \n");
  9. printf("4. Divide the current result by a rational number; \n");
  10. printf("5. Take the reciprocal of the current result; \n");
  11. printf("6. Quit\n\n");
  12. printf("Please enter a selection: ");
  13.  
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement