Write a program whose inputs are three integers, and whose output is the largest of the three values.
Answers
Answered by
0
Answer:
7, 15, 3
Explanation: LARGEST = 15
SMALLEST 3
Answered by
3
Answer:
import java.util*;
class Integers
{
public void check()
{
Scanner sc = newScanner(System.in);
System.out.println("Enter 1st Integer:")
double n1 = sc.nextDouble();
System.out.println("Enter 2nd Integer:")
double n2 = sc.nextDouble();
System.out.println("Enter 3rd Integer:")
double n3 = sc.nextDouble();
if(n1> n2 && n1 > n3)
System.out.println( "First Integer has Largest value");
else if(n2> n1 && n2 > n3)
System.out.println( "Second Integer has Largest value");
else(n3> n2 && n3 > n1)
System.out.println( "Third Integer has Largest value");
}
}
Please Mark as Brainliest Answer ❤️
Please Follow me ❤️
Please Thank my answers ❤️
Similar questions