Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void printRational(int n, int d)
- {
- printf("\n--------------------------------------------\n");
- reduceResult();
- printf("The current result is: %d/%d\n", n, d);
- printf("1. Subtract a rational number from the current result; \n");
- printf("2. Add a rational number to the current result; \n");
- printf("3. Multiply the current result by a rational number; \n");
- printf("4. Divide the current result by a rational number; \n");
- printf("5. Take the reciprocal of the current result; \n");
- printf("6. Quit\n\n");
- printf("Please enter a selection: ");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement