Advertisement
CoineTre

Larger Number

Oct 11th, 2020
29
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.40 KB | None | 0 0
  1. import java.util.Scanner;
  2.  
  3. public class LargerNumber {
  4.     public static void main(String[] args) {
  5.         Scanner scanner = new Scanner (System.in);
  6.         int a = Integer.parseInt (scanner.nextLine ());
  7.         int b = Integer.parseInt (scanner.nextLine ());
  8.         if (a > b) {
  9.             System.out.println (a);
  10.         } else {
  11.             System.out.println (b);
  12.         }
  13.     }
  14. }
  15.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement