WAP to input three nos . and print the largest among them
Java program
Please send full program
Answers
Answered by
0
Answer:
tttttttttttttttttttt
Answered by
2
Answer:
public class Largest {
public static void main(String[] args) {
double n1 = -4.5, n2 = 3.9, n3 = 2.5;
if( n1 >= n2 && n1 >= n3)
System.out.println(n1 + " is the largest number.");
else if (n2 >= n1 && n2 >= n3)
System.out.println(n2 + " is the largest number.");
else
System.out.println(n3 + " is the largest number.");
}
}
Similar questions
Physics,
3 months ago
Computer Science,
3 months ago
Math,
6 months ago
Hindi,
6 months ago
Computer Science,
11 months ago