//********************************************************************
//  GasMileage.java       Author: Lewis/Loftus
//
//  Demonstrates the use of the Scanner class to read numeric data.
//********************************************************************

import java.util.Scanner;

public class GasMileage
{
   //-----------------------------------------------------------------
   //  Calculates fuel efficiency based on values entered by the
   //  user.
   //-----------------------------------------------------------------
   public static void main (String[] args)
   {
      int km;
      double liter, kmpl;

      Scanner scan = new Scanner (System.in);

      System.out.print ("Enter the number of kilometers: ");
      km = scan.nextInt();

      System.out.print ("Enter the liters of fuel used: ");
      liter = scan.nextDouble();

      kmpl = km / liter;

      System.out.println ("Kilometers Per Liter: " + kmpl);
   }
}
