I wrote a small program that reads two integers using scanf and then performs various arithmetic calculations. I\'m using printf to display the res
scanf
printf
use "%.2f" at the place you want.
For example, modify the following statement
printf("\n%20s%20lf", "Fraction", quotientdecimal);
into this one :
printf("\n%20s%.2f", "Fraction", quotientdecimal);
will only display two fraction numbers of the variable quotlentdecimal.