Write a program that repeatedly asks for a distance in miles then prints the equivalent distance in kilometers. The program should exit only when the user enters an invalid number.
You will need to use the functions scanf
and printf
, a loop, and the
equation k = 1.6093444 * m
. The input and output should be floating point,
not integer.
Due 7/19