Advertisement
Guest User

Untitled

a guest
Feb 24th, 2017
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.78 KB | None | 0 0
  1. import java.util.Scanner;
  2.  
  3. /**
  4.  * Created by Niki on 23.2.2017 г..
  5.  */
  6. public class exp4 {
  7.     public static void main(String[] args) {
  8.         Scanner console = new Scanner(System.in);
  9.  
  10.         double n = Double.parseDouble(console.nextLine());
  11.  
  12.         double wight = Double.parseDouble(console.nextLine());
  13.         double height = Double.parseDouble(console.nextLine());
  14.  
  15.         double spot = Double.parseDouble(console.nextLine());
  16.         double spot1 = Double.parseDouble(console.nextLine());
  17.  
  18.         double area = n * n - spot * spot1;
  19.         double areamaterial = wight * height;
  20.  
  21.         double total = area / areamaterial;
  22.         double timetoFinish = total * 0.2;
  23.  
  24.         System.out.println(total);
  25.         System.out.println(timetoFinish);
  26.  
  27.  
  28.     }
  29. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement