import java.io.*; import java.util.*; public class GallonsToLtrs{ public static void main (String[] args)throws Exception{ //1 US gallon = 3.7854118 liters; BufferedReader bf = new BufferedReader(new InputStreamReader(System.in)); System.out.print("Enter the Gallon:"); int gallon = Integer.parseInt(bf.readLine()); double liters = gallon * 3.7854118; System.out.println("Liters: " + liters); } }