Question: Write a program that prints the decimal expansion of a fraction, marking the repeated part with an R. For example, 5/2 is 2.5R0, 1/12 is
Write a program that prints the decimal expansion of a fraction, marking the repeated part with an R. For example, 5/2 is 2.5R0, 1/12 is 0.08R3, and 1/7 is 0.R142857.
Step by Step Solution
3.38 Rating (170 Votes )
There are 3 Steps involved in it
A decimal fraction is a fraction with a power of 1... View full answer
Get step-by-step solutions from verified subject matter experts
