Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Scanner;
- /**
- * Created by Niki on 23.2.2017 г..
- */
- public class exp4 {
- public static void main(String[] args) {
- Scanner console = new Scanner(System.in);
- double n = Double.parseDouble(console.nextLine());
- double wight = Double.parseDouble(console.nextLine());
- double height = Double.parseDouble(console.nextLine());
- double spot = Double.parseDouble(console.nextLine());
- double spot1 = Double.parseDouble(console.nextLine());
- double area = n * n - spot * spot1;
- double areamaterial = wight * height;
- double total = area / areamaterial;
- double timetoFinish = total * 0.2;
- System.out.println(total);
- System.out.println(timetoFinish);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement