write a program in Java to input two numbers and find the largest and smallest number or equal number
Answers
Answered by
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
Social Sciences,
4 months ago
Math,
4 months ago
Physics,
4 months ago
India Languages,
9 months ago
English,
9 months ago
Social Sciences,
1 year ago
Math,
1 year ago