C#C
C#3y ago
13 replies
EternalPurposE

❔ Can someone help with this task in C#, it should be done with recursion

Determine the longest distance a car can travel under the following conditions:

The fuel is stored in 3 barrels, each with a capacity of 100 liters.
The car can only carry one barrel at a time.
The car's fuel tank capacity is 20 liters.
Fuel consumption is 10 liters per 100 kilometers.
Was this page helpful?