Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package myPkg;
- import java.util.Scanner;
- public class Ex02 {
- public static void main(String[] args) {
- int x, y;
- Scanner in = new Scanner(System.in);
- System.out.println("Enter two numbers: ");
- x = in.nextInt();
- y = in.nextInt();
- if (x > y) {
- System.out.println("the great number is " + x);
- } else {
- System.out.println("the great number is " + y);
- }
- in.close();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement