write a java program to input three numbers and point out largest number by using max() function..
the person who will give the correct answer will get 10 thanks + follow + marked as brainliest.
no spam
Answers
Answered by
1
public class JavaExample{
public static void main(String[] args) {
int num1 = 10, num2 = 20, num3 = 7;
if(num1 >= num2) {
if(num1 >= num3)
System.out.println(num1+" is the largest Number");
else
System.out.println(num3+" is the largest Number");
}
else {
if(num2 >= num3)
System.out.println(num2+" is the largest Number");
else
System.out.println(num3+" is the largest Number");
}
}
}
this is just a boiler plate code just make changes which you need hope it helps
Similar questions