/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package wojtyczka2; import java.io.*; import java.util.*; /** * * @author student */ public class Wojtyczka2 { /** * @param args the command line arguments */ public static void main (String[] args)throws Exception{ BufferedReader bf = new BufferedReader (new InputStreamReader(System.in)); System.out.print("Podaj mile: "); int mila = Integer.parseInt(bf.readLine()); double km = mila * 1.609; System.out.println("Km: " + km); } }