fork download
  1. /* package whatever; // don't place package name! */
  2.  
  3. import java.util.*;
  4. import java.lang.*;
  5. import java.io.*;
  6.  
  7. /* Name of the class has to be "Main" only if the class is public. */
  8. class Ideone
  9. {
  10. public static void main (String[] args) throws java.lang.Exception
  11. {
  12. Scanner in = new Scanner(System.in);
  13.  
  14. double p1 = in.nextDouble();
  15. double p2 = in.nextDouble();
  16. double p3 = in.nextDouble();
  17.  
  18. double op = (1+p1/100)*(1+p2/100)*(1+p3/100);
  19. System.out.println(op);
  20. double sp;
  21. sp=(Math.pow(op, 1.0/3.0)-1)*100;
  22.  
  23. System.out.println(sp);
  24. }
  25. }
Success #stdin #stdout 0.17s 321344KB
stdin
5 5 5
stdout
Standard output is empty