Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Scanner;
- public class Main {
- public static void main(String[] args){
- Scanner inPut = new Scanner(System.in);
- int mpg = inPut.nextInt();
- int result = (int) (282.48/mpg);
- System.out.println(result + " litres per 100 km");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement