Can anyone assist me ian writting a code for converting liters to pints and gallons,
I came up with this, however I can't seem to place it in a code.
U.S. gallon = 3.7854 liters. One liter = .264 U.S. gallon.
The formula for converting liters to U.S. gallons is:
Liters ÷ 3.7854 = U.S. gallons
Convert U.S. gallons to liters with the formula:
U.S. gallons x 3.785 = liters