Computer Science, asked by sneha47242, 9 months ago

write a program in Java to input two numbers and find the largest and smallest number or equal number​

Answers

Answered by shubhamshivansh
0

Answer:

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

Explanation:

please mark me as brainliest and thankyou

thanks

Similar questions