Bluej program to accept 3 numbers and find smallest and largest
Answers
Answered by
0
Answer:
How do you find the largest and smallest number in Java?
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));
Explanation:
indhu35:
hiii
Similar questions
Social Sciences,
6 months ago
History,
6 months ago
Sociology,
1 year ago
Environmental Sciences,
1 year ago