write a java program to accept 2 numbers and check which is greater or if they are equal
Answers
Answer:
I hope this helps you
Explanation:
This is a Java Program to Accept two Integers and Check if they are Equal.
Enter two integer numbers as input. After that we match both the inputs with the help of equal to(==) operator. Hence we generate the output accordingly.
Here is the source code of the Java Program to Accept two Integers and Check if they are Equal. The Java program is successfully compiled and run on a Windows system.
have a great day dear ♥️
Answer:
This is a Java Program to Accept two Integers and Check if they are Equal.
Enter two integer numbers as input. After that we match both the inputs with the help of equal to(==) operator. Hence we generate the output accordingly.
Here is the source code of the Java Program to Accept two Integers and Check if they are Equal. The Java program is successfully compiled and run on a Windows system. The program output is also shown below.
import java.util.Scanner;
import java.util.Scanner;public class Equal_Integer
import java.util.Scanner;public class Equal_Integer {
import java.util.Scanner;public class Equal_Integer { public static void main(String[] args)
import java.util.Scanner;public class Equal_Integer { public static void main(String[] args) {
import java.util.Scanner;public class Equal_Integer { public static void main(String[] args) { int m, n;
import java.util.Scanner;public class Equal_Integer { public static void main(String[] args) { int m, n; Scanner s = new Scanner(System.in);
import java.util.Scanner;public class Equal_Integer { public static void main(String[] args) { int m, n; Scanner s = new Scanner(System.in); System.out.print("Enter the first number:");
import java.util.Scanner;public class Equal_Integer { public static void main(String[] args) { int m, n; Scanner s = new Scanner(System.in); System.out.print("Enter the first number:"); m = s.nextInt();
import java.util.Scanner;public class Equal_Integer { public static void main(String[] args) { int m, n; Scanner s = new Scanner(System.in); System.out.print("Enter the first number:"); m = s.nextInt(); System.out.print("Enter the second number:");
import java.util.Scanner;public class Equal_Integer { public static void main(String[] args) { int m, n; Scanner s = new Scanner(System.in); System.out.print("Enter the first number:"); m = s.nextInt(); System.out.print("Enter the second number:"); n = s.nextInt();
import java.util.Scanner;public class Equal_Integer { public static void main(String[] args) { int m, n; Scanner s = new Scanner(System.in); System.out.print("Enter the first number:"); m = s.nextInt(); System.out.print("Enter the second number:"); n = s.nextInt(); if(m == n)
import java.util.Scanner;public class Equal_Integer { public static void main(String[] args) { int m, n; Scanner s = new Scanner(System.in); System.out.print("Enter the first number:"); m = s.nextInt(); System.out.print("Enter the second number:"); n = s.nextInt(); if(m == n) {
import java.util.Scanner;public class Equal_Integer { public static void main(String[] args) { int m, n; Scanner s = new Scanner(System.in); System.out.print("Enter the first number:"); m = s.nextInt(); System.out.print("Enter the second number:"); n = s.nextInt(); if(m == n) { System.out.println(m+" and "+n+" are equal ");
import java.util.Scanner;public class Equal_Integer { public static void main(String[] args) { int m, n; Scanner s = new Scanner(System.in); System.out.print("Enter the first number:"); m = s.nextInt(); System.out.print("Enter the second number:"); n = s.nextInt(); if(m == n) { System.out.println(m+" and "+n+" are equal "); }
import java.util.Scanner;public class Equal_Integer { public static void main(String[] args) { int m, n; Scanner s = new Scanner(System.in); System.out.print("Enter the first number:"); m = s.nextInt(); System.out.print("Enter the second number:"); n = s.nextInt(); if(m == n) { System.out.println(m+" and "+n+" are equal "); } else
import java.util.Scanner;public class Equal_Integer { public static void main(String[] args) { int m, n; Scanner s = new Scanner(System.in); System.out.print("Enter the first number:"); m = s.nextInt(); System.out.print("Enter the second number:"); n = s.nextInt(); if(m == n) { System.out.println(m+" and "+n+" are equal "); } else {
import java.util.Scanner;public class Equal_Integer { public static void main(String[] args) { int m, n; Scanner s = new Scanner(System.in); System.out.print("Enter the first number:"); m = s.nextInt(); System.out.print("Enter the second number:"); n = s.nextInt(); if(m == n) { System.out.println(m+" and "+n+" are equal "); } else { System.out.println(m+" and "+n+" are n