fork download
  1. import java.util.*;
  2. import java.lang.*;
  3. import java.io.*;
  4.  
  5. class Depo
  6. {
  7. public static void main (String[] args) throws java.lang.Exception
  8. {
  9. double a, b, c;
  10. Scanner in = new Scanner(System.in);
  11. a=in.nextDouble();
  12. b=in.nextDouble();
  13. c=in.nextDouble();
  14. if((a>=b)&&(b>=c)){
  15. a*=2;
  16. b*=2;
  17. c*=2;
  18. }
  19. else{
  20. a=Math.abs(a);
  21. b=Math.abs(b);
  22. c=Math.abs(c);
  23. }
  24. System.out.printf("a = %3.2f, b = %3.2f, c = %3.2f", a, b, c);
  25. }
  26. }
Success #stdin #stdout 0.15s 321344KB
stdin
26 16 -2
stdout
a = 52.00, b = 32.00, c = -4.00