daily pastebin goal
34%
SHARE
TWEET

Untitled

a guest May 26th, 2018 65 Never
Upgrade to PRO!
ENDING IN00days00hours00mins00secs
 
  1. /*
  2.  * Tehtövä 6
  3.  * Toni Martikainen
  4.  */
  5. package toni;
  6.  
  7. import java.util.Scanner;
  8. public class Toni6 {
  9.  
  10.     public static void main(String[] args) {
  11.        
  12.        
  13.         Scanner lukija = new Scanner(System.in);
  14.         double gallonat ;  //korkeus
  15.        double kulutus ;
  16.        
  17.         System.out.print("Syötä autosi kulutus per maili");
  18.         gallonat = lukija.nextInt();
  19.        
  20.         kulutus =gallonat * 3,785 * 0,625;
  21.        
  22.        
  23.         System.out.println("Autosi kulutus litroina on: " + kulutus + "Sadalla kilometrillä");
  24.     } // end of main
  25. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top