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 sc = new Scanner(System.in);
- int m = Integer.parseInt(sc.nextLine());
- double result = Math.floor(((100 / 1.6) / m) * 4.54);
- System.out.printf("%.0f litres per 100 km", result);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment