Write a Java program to find the greatest and smallest between two number using mathematical library functions (plz in order )
Answers
Answered by
4
Answer:
I think it is helpful
Explanation:
class Test {
public static void main(String[] args) {
float num1 = 4.25f;
int num2 =5;
System. out. println("The largest number of the two numbers is " + Math. max(num1,num2));
System. out. println("The smallest number of the two numbers is " + Math. min(num1,num2));
Similar questions