Find the decimal equivalent

Find the decimal equivalent

Write an application that prompts for and reads the numerator and denominator of a fraction as integers, then prints the decimal equivalent of the fraction. (HINT: Use DOUBLE not INT).

Example 1:


input data:
5 10
output:
0.5

Example 2:


input data:
15 60
output:
0.25
View Java Solution

Seda
Seda Kunda is a web designer and developer with a degree in Computer Science and a great passion for code. Besides code, she enjoys pepperoni pizza, watching the bachelor and sleeping in on Saturdays.
Share on FacebookShare on Google+Tweet about this on TwitterShare on LinkedIn