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

91 Likes

Answer


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

Answered By

62 Likes


Related Questions