deyanivanov966

02. Greater Number

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