Calculate the average consumption of a car given the total distance traveled (in Km) and the total spent fuel (in liters).
The input file contains two numbers: the first one is an integer X which represents the total distance (in Km) and the second one is an floating-point number Y which represents the among of spent fuel by the car, with a digit after the decimal point.
Print the result which represents the medium of the car comsumptiom with 3 digits after the decimal point, followed by the message “km/l”.
|Sample Input||Sample Output|
float a, b;
printf(“%.3f km/l\n”, a / b);