Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Scanner;
- public class FishFank {
- public static void main(String[] args) {
- Scanner scanner = new Scanner(System.in);
- int length = Integer.parseInt(scanner.nextLine());
- int width = Integer.parseInt(scanner.nextLine());
- int height = Integer.parseInt(scanner.nextLine());
- double percentage = Double.parseDouble(scanner.nextLine());
- double liters = length * width * height * (100 - percentage) / 100000;
- System.out.println(liters);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement