forked from AdeshTikande/Basic-Java-Program-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathequal.java
More file actions
27 lines (27 loc) · 783 Bytes
/
Copy pathequal.java
File metadata and controls
27 lines (27 loc) · 783 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
import java.util.Scanner;
public class equal {
public static void main(String[] args) {
Scanner sc=new Scanner(System.in);
System.out.println("Enter the First Number:");
int n1=sc.nextInt();
System.out.println("Enter the Second Number:");
int n2=sc.nextInt();
System.out.println("Enter the Third Number:");
int n3=sc.nextInt();
if(n1==n2)
{
if(n2==n3)
{
System.out.println("All the Numbers are Equal");
}
else
{
System.out.println("The Numbers are Not Equal");
}
}
else
{
System.out.println("The Numbers are Not Equal");
}
}
}