Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- static int rV = 5;
- static int people = 2864;
- static int lpp = 10;
- static double l;
- static double days;
- public static void main(String[] args) {
- l = (Math.pow(rV, 3) * Math.PI) * 1000;
- days = (l/(people*10));
- System.out.println("Objem vodojemu je " + l + " litrů [l].");
- System.out.println("Objem vodojemu je " + l/100 + " hektalitrů [hL]");
- System.out.println("Voda vydrží " + days + " dní.");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement