Computer Applications

Write an if statement to find the smallest of the three given integers using the min() method of the Math class.

Java Conditional Stmts

89 Likes

Answer


if (a < Math.min(b, c))
  System.out.println(a);
else
  System.out.println(Math.min(b, c));

Answered By

60 Likes


Related Questions