OneCompiler

Write a program to accept two numbers and check if BOTH ARE EQUAL

287

import java.util.*;

public class bothareequal {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
System.out.println("ENTER TWO NUMBERS");
int n1=sc.nextInt();
int n2 = sc.nextInt();
if(n1==n2)
System.out.println("Both are equal");
else
System.out.println("BOTH ARE NOT EQUAL");
}
}

FOR CODE : CLICK >> https://onecompiler.com/java/3ygpn7a9m TO FIND OUTPUT.

SUPPORT US >> https://onethoughttechnology.blogspot.com (OFFICIAL WEBSITE)