let's learn

Uri Online judge - 1014 | Cconsumption | problem solution in c

Timelimit: 1

Calculate a car's average consumption being provided the total distance traveled (in Km) and the spent fuel total (in liters).


The input file contains two values: one integer value representing the total distance (in Km) and the second one is a floating point number Y  representing the spent fuel total, with a digit after the decimal point.


Present a value that represents the average consumption of a car with 3 digits after the decimal point, followed by the message "km/l".

Solution:  Read my solution

#ltslearn #Let's Learn

No comments

Powered by Blogger.