please solve it if you know the answer ?
Attachments:
LuckyYadav2578:
programme in which language?
Answers
Answered by
0
Code :
import java.util.Scanner;
class big
{
public static void main(String[] args)
{
int a,b,c;
Scanner sc = new Scanner(System.in);
//first input
System.out.println("Enter the 1st number : ");
a=sc.nextInt();
//first input
System.out.println("Enter the 2nd number : ");
b=sc.nextInt();
//first input
System.out.println("Enter the 3rd number : ");
c=sc.nextInt();
if{a==b && b==c}
{
System.out.println("All the numbers are equal.");
}
else if(a>b && a>c)
{
System.out.println("Greatest Number : "+a);
}
else if(b>c)
{
System.out.println("Greatest Number : "+b);
}
else
{
System.out.println("Greatest Number : "+c);
}
}
}
Attachments:
Similar questions