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