Advertisement
Strade351

Task 4.1

Jul 7th, 2016
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.35 KB | None | 0 0
  1. /**
  2.  * Created by Anatoliy on 07.07.2016.
  3.  * Task 1
  4.  * 4.1
  5.  */
  6. import java.util.Scanner;
  7.  
  8. public class GallonsToLitres {
  9.     public static void main(String[] args) {
  10.         double gal, lit;
  11.         Scanner in = new Scanner(System.in);
  12.         gal = in.nextDouble();
  13.         lit = gal * 3.78541178;
  14.         System.out.println(lit);
  15.     }
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement