Untitled

mail@pastecode.io avatar
unknown
plain_text
a year ago
750 B
1
Indexable
import java.util.Scanner;

public class Raine1 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        System.out.print("Enter the first number: ");
        int firstNumber = scanner.nextInt();
        System.out.print("Enter the second number: ");
        int secondNumber = scanner.nextInt();
        scanner.close();

        if (firstNumber < secondNumber) {
            System.out.println("The first number is less than the second number.");
        } else if (firstNumber > secondNumber) {
            System.out.println("The first number is greater than the second number.");
        } else {
            System.out.println("The first number is equal to the second number.");
        }
    }
}