Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package com.company;
- import java.util.Scanner;
- public class Main2 {
- public static void main(String[] args) {
- Scanner s = new Scanner(System.in);
- int l = Integer.parseInt(s.nextLine());
- int w = Integer.parseInt(s.nextLine());
- int h = Integer.parseInt(s.nextLine());
- double per = Double.parseDouble(s.nextLine());
- int volCM = l * w * h;
- double volL = volCM * 0.001;
- double nedL = volL - volL * per / 100;
- System.out.printf("%.5f", nedL);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement