Advertisement
Guest User

Untitled

a guest
Mar 20th, 2019
620
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.29 KB | None | 0 0
  1. import java.util.Scanner;
  2.  
  3. public class Main {
  4.  
  5.     public static void main(String[] args){
  6.        Scanner inPut = new Scanner(System.in);
  7.  
  8.         int mpg = inPut.nextInt();
  9.         int result = (int) (282.48/mpg);
  10.         System.out.println(result + " litres per 100 km");
  11.     }
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement