* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package ifelsestartmetclass2;
import java.util.Scanner;
/**
*
* @author Hp
*/
public class IFELSESTARTMETCLASS2 {
/**
* @param args the command line arguments
*/
public static void main(String[] args) {
// TODO code application logic here
Scanner num= new Scanner (System.in);
System.out.println("Entre your number:: ");
int num1 = num.nextInt();
System.out.println("Entre your next number:: ");
int num2 = num.nextInt();
if(num1==num2)
{
System.out.println("Your numbers are equall:: ");
}
else if(num1!=num2)
{
System.out.println("YOUR NUMBERS ARE NOT EQUALL:: ");
}
if(num1>num2)
{
System.out.println("YOur "+num1+" is large and "+num2+" is small");
}
if(num1<num2)
{
System.out.println("your "+num2+" is large and "+num1+" is small");
}
}
}

0 Comments