• Source
    1. import java.util.*;
    2.  
    3. class q218376991
    4. {
    5. public static void main (String[] args) throws java.lang.Exception
    6. {
    7. Scanner in = new Scanner(System.in);
    8. double a = in.nextDouble(), b = in.nextDouble();
    9. System.out.format("%f * %f = %f%n", a, b, a * b);
    10. System.out.format("%f / %f = %f%n", a, b, a / b);
    11. double c = in.nextDouble(), d = in.nextDouble();
    12. System.out.format("Min(%f, %f) = %f%n", c, d, Math.min(c, d));
    13. double e = in.nextDouble(), f = in.nextDouble(), g = in.nextDouble();
    14. System.out.format("Max(%f, %f, %f) = %f%n", e, f, g, Math.max(e, Math.max(f, g)));
    15. }
    16. }