write a program to find the smallest of the three given integers using the min() method of the math class
Answers
Answered by
5
Answer:
public class Main
{
public static void main(String[] args) {
int a=10;
int b=20;
int c=-7;
int min=(int)Math.min(a,b);
System.out.println(Math.min(min,c));
}
}
Explanation:
it is a java program
Attachments:
Similar questions
CBSE BOARD X,
3 months ago
English,
3 months ago
Science,
7 months ago
Math,
7 months ago
Math,
10 months ago
Social Sciences,
10 months ago
Physics,
10 months ago