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
Math,
5 months ago
Physics,
5 months ago
Science,
5 months ago
India Languages,
10 months ago
English,
10 months ago
Social Sciences,
1 year ago
Math,
1 year ago