Computer Science, asked by puransinghpal325, 1 day ago

write a if statement to find the smallest of the three given Integers using the min() method of the math class​

Answers

Answered by abhishekpradhan14120
2

Answer:

Explanation:

et the three integers be a, b and c then the smallest integer can be found by,

if (a < Math.min(b, c))

 System.out.println(a);

else

 System.out.println(Math.min(b, c));in(a, Math.min(b, c));

Mark as brainlist

Answered by vidhyabarud
0

•Java Program•

public class XYZ

{

static void main ( int a, int b, int c )

{

if ( a < Math. min ( b, c )

System. out. println ( " Smallest integer is " + a );

else

System.out. println ( " Smallest integer is " + Math.min ( b, c ) );

}

}

Hope Helps You

Please mark as the Brainliest ‼️

Similar questions