Facebook
From Baby Elephant, 2 Months ago, written in Plain Text.
Embed
Download Paste or View Raw
Hits: 67
  1. /*
  2.  * To change this license header, choose License Headers in Project Properties.
  3.  * To change this template file, choose Tools | Templates
  4.  * and open the template in the editor.
  5.  */
  6.  
  7. package wojtyczka2;
  8. import java.io.*;
  9. import java.util.*;
  10. /**
  11.  *
  12.  * @author student
  13.  */
  14. public class Wojtyczka2 {
  15.  
  16.     /**
  17.      * @param args the command line arguments
  18.      */
  19.     public static void main (String[] args)throws
  20.   Exception{
  21.   BufferedReader bf = new BufferedReader
  22.   (new InputStreamReader(System.in));
  23.   System.out.print("Podaj mile: ");
  24.   int mila = Integer.parseInt(bf.readLine());
  25.   double km = mila * 1.609;
  26.   System.out.println("Km: " + km);
  27.   }
  28. }
  29.  
  30.    
  31.    
  32.  
  33.