Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * Created by Anatoliy on 07.07.2016.
- * Task 1
- * 4.1
- */
- import java.util.Scanner;
- public class GallonsToLitres {
- public static void main(String[] args) {
- double gal, lit;
- Scanner in = new Scanner(System.in);
- gal = in.nextDouble();
- lit = gal * 3.78541178;
- System.out.println(lit);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement