Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Scanner;
- public class targil4
- {
- static Scanner reader = new Scanner(System.in);
- /**
- * @param args
- */
- public static void main(String[] args)
- {
- int x;
- int x2;
- System.out.println ("enter num1");
- x = reader.nextInt();
- System.out.println ("enter num2");
- x2 =reader.nextInt();
- if (x>x2){
- System.out.println(x);
- System.out.println(x2);
- }
- else
- {
- System.out.println(x2);
- System.out.println(x);
- }
- }
- }
Add Comment
Please, Sign In to add comment