write a program in java to find the minimum of 3 numbers using Math.min() method.
please tell
Answers
Answered by
2
Want to ask something:
Your name is Tanishk if yes than my name is Hiten do you know? If you are Tanishk than give 3 stars if no than give 5 stars.
Answer:
int smallest; smallest = min(a1, a2); smallest = min(smallest, a3); smallest = min(smallest, a4); ... smallest = min(smallest, a37); But if you think of speed, maybe better way would be to put values into list, and then find min of that: List<Integer> mySet = Arrays.
HERE IS YOUR ANSWER
HOPE IT IS HELPFUL FOR YOU
THANK YOU
Similar questions