Advertisement
Guest User

Untitled

a guest
Dec 15th, 2019
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.60 KB | None | 0 0
  1. import java.util.Scanner;
  2.  
  3. public class AlcoholMarket {
  4.  
  5.     public static void main(String[] args) {
  6.         Scanner scanner = new Scanner(System.in);
  7.  
  8.         double lenght = Double.parseDouble(scanner.nextLine());
  9.         double wight = Double.parseDouble(scanner.nextLine());
  10.         double bar =  Double.parseDouble(scanner.nextLine());
  11.  
  12.         double zala = lenght * wight;
  13.         double barSize = bar * bar;
  14.         double dance = zala*0.19;
  15.         double freeSpace =zala-barSize-dance;
  16.         double peaple= freeSpace/3.2;
  17.         System.out.printf("%.1f",Math.ceil(peaple));
  18.  
  19.     }
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement