Computer Science, asked by sneh1166, 1 year ago

Bluej program to accept 3 numbers and find smallest and largest

Answers

Answered by Anonymous
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