fork(2) download
  1. import java.util.*;
  2. import java.lang.*;
  3. import java.io.*;
  4.  
  5. class Ideone
  6. {
  7. public static void main (String[] args) throws java.lang.Exception
  8. {
  9. double x, y, z;
  10. Scanner in = new Scanner(System.in);
  11. x = in.nextDouble();
  12. y = in.nextDouble();
  13. z = in.nextDouble();
  14. double max = z;
  15. if ( y > max)
  16. {
  17. max = y;
  18. }
  19. if ( x > max )
  20. {
  21. max = x;
  22. }
  23.  
  24. System.out.println(max);
  25. }
  26. }
Success #stdin #stdout 0.14s 31232KB
stdin
9 125 150
stdout
150.0