Advertisement
Spocoman

09. Fish Tank

Aug 19th, 2024
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.52 KB | None | 0 0
  1. import java.util.Scanner;
  2.  
  3. public class FishFank {
  4.     public static void main(String[] args) {
  5.  
  6.         Scanner scanner = new Scanner(System.in);
  7.         int length = Integer.parseInt(scanner.nextLine());
  8.         int width = Integer.parseInt(scanner.nextLine());
  9.         int height = Integer.parseInt(scanner.nextLine());
  10.         double percentage = Double.parseDouble(scanner.nextLine());
  11.  
  12.         double liters = length * width * height * (100 - percentage) / 100000;
  13.  
  14.         System.out.println(liters);
  15.     }
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement