daily pastebin goal
3%
SHARE
TWEET

Tiles repair

16120 Dec 16th, 2018 56 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import java.util.Scanner;
  2.  
  3. public class repair {
  4.  
  5.     public static void main(String[] args) {
  6.         Scanner sc = new Scanner(System.in);
  7.  
  8.         int a = Integer.parseInt(sc.nextLine());
  9.  
  10.         double b = Double.parseDouble(sc.nextLine());
  11.  
  12.         double c = Double.parseDouble(sc.nextLine());
  13.  
  14.         int d = Integer.parseInt(sc.nextLine());
  15.  
  16.         int e = Integer.parseInt(sc.nextLine());
  17.  
  18.         double ploshtadka = a * a;
  19.         double ploshtpeika = d * e;
  20.         double ploshtzapokrivane = ploshtadka - ploshtpeika;
  21.         double ploshtplochki = b * c;
  22.  
  23.         double plochki = ploshtzapokrivane / ploshtplochki;
  24.         double vreme = plochki * 0.2;
  25.  
  26.         System.out.println(plochki);
  27.         System.out.println(vreme);
  28.  
  29.     }
  30.  
  31. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand