Computer Science, asked by kanupriya163, 4 months ago

write a class to input two integers and print the smallest of two numbers

Java program for class 9

hint- use math function- math.min

warning- don't spam otherwise will be reported and your answer will be deleted​

Answers

Answered by keyboardavro
1

Answer:

Explanation:

// 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));  

   }  

}

Similar questions