Computer Science, asked by shrutikakadam8535, 2 months ago

which instructions are used to make decision to find smallest/largest number in the program​

Answers

Answered by purveshKolhe
1

Answer:

Use Math.max() :

Example ==>

public class Brainly {

public static void main(String [] args) {

System.out.println(Math.max(55 , 98));

}

}

Output ==>

98

--Because 98 is greater in this.

--In the same way, use Math.min number to find smaller number.

Similar questions