Advertisement
desislava_topuzakova

DanceHall

Jan 13th, 2018
264
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  1. import java.util.Scanner;
  2.  
  3. public class DancingHall {
  4. public static void main(String[] args) {
  5. Scanner scan = new Scanner(System.in);
  6.  
  7. double L = Double.parseDouble(scan.nextLine());
  8. double W = Double.parseDouble(scan.nextLine());
  9. double A = Double.parseDouble(scan.nextLine());
  10. double zala = L * 100 * W * 100;
  11. double garderob = A * 100 * A * 100;
  12. double pejka = zala / 10;
  13. double freeSpace = zala - garderob - pejka;
  14. double tanciori = freeSpace / (40 + 7000);
  15. System.out.println((int)Math.floor(tanciori));
  16.  
  17. }
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement