The input for program #1 is as
follows:
5 10
15 25
35 77
0 15
13 25
125 3
51 17
65 12
19 19
35 0
47 0
75 25
81 20
85 20
Each number above is a numerator and denominator you will enter these number
into your program. Your program will turn these fractions to their reduced/simplest
form. If the denominator is 0 do not return outbput for that fraction,
but print out on the screen that you entered a 0 for the denonminator.
Display the whole number as a whole number and not a fraction so then number
two would display as 2, not 2/1, fraction 125/3 will display as 41 2/3,
and 5/10 will display as 1/2.
|