Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Scanner;
- public class EvenOrOdd {
- public static void main(String[] args) {
- Scanner scan = new Scanner(System.in);
- System.out.print("ENTER NUM 1 ");
- int a = Integer.parseInt(scan.nextLine());
- System.out.print("ENTER NUM 2 ");
- int b = Integer.parseInt(scan.nextLine());
- if(a > b){
- System.out.println(a);
- } else {
- System.out.println(b);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement