A program is required to compute the cost of a car trip. The required input values are:

Litres per 100km
Distance travelled
Cost per litre of petrol
The output value is the total cost of the trip.

Just pay attention to the units:

km * L/km * $/L = $ (cost of trip)