➽ Program:-
import
java.util.*;
import
java.io.*;
public
class Main
{
public static void main(String args[])
{
int x, y;
Scanner s = new Scanner(System.in);
x = s.nextInt();
y = s.nextInt();
System.out.print("Enter the Values
of X and Y: ");
if(x == y)
{
System.out.print("X and Y are
Equal");
}
else
{
System.out.print("X and Y are
not Equal");
}
}
}
➽ Output:-
Enter the Values of X and Y: 7 7
X and Y are Equal
Enter the Values of X and Y: 4 9
X and Y are not Equal
0 Comments
Please do not enter any spam link in the comment section.