Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- * Simple Conditions
- */
- import java.util.Scanner;
- public class _04a_GreaterNumber
- {
- public static void main(String[] args)
- {
- Scanner scan = new Scanner(System.in);
- int a = Integer.parseInt(scan.nextLine());
- 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