Uploaded by karlospotify127

java2

advertisement
/******************************************************************************
Welcome to GDB Online.
GDB online is an online compiler and debugger tool for C, C++, Python, Java, PHP, Ruby, Perl,
C#, VB, Swift, Pascal, Fortran, Haskell, Objective-C, Assembly, HTML, CSS, JS, SQLite, Prolog.
Code, Compile, Run and Debug online from anywhere in world.
*******************************************************************************/
import java.util.*;
public class Main
{
public static void main(String[] args) {
int num1,num2;
Scanner sc= new Scanner(System.in);
System.out.println("this if for comparing numbers");
System.out.println("insert first number");
num1=sc.nextInt();
System.out.println("insert second number");
num2=sc.nextInt();
if(num1==num2){
System.out.println(num1+"="+num2);
}
if(num1>num2){
System.out.println(num1+">"+num2);
}
if(num1<num2){
System.out.println(num1+"<"+num2);
}
}
}
Download