Computer Science, asked by tiyarana, 1 year ago

write a program in Java to find the minimum of the three number using math.min()method​

Answers

Answered by msasomrat
9

Answer:

// Java program to demonstrate the  

// use of min() function  

// two double data-type numbers are passed as argument  

public class Gfg {  

 

   public static void main(String args[])  

   {  

       double a = 12.123;  

       double b = 12.456;  

 

       // prints the minimum of two numbers  

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

   }  

}

Explanation:

Answered by HARSHIT123RAJ
6

Answer:

public class function

static void main ()

{

double a = 12.111;

double b = 12.554;

{

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

}

}

Explanation:

please follow like and vote if u liked the answer

Similar questions