Advertisement
tchenkov

L03u04_GreaterNumber

Jan 18th, 2017
620
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 5 0.46 KB | None | 0 0
  1. import java.util.Scanner;
  2.  
  3. /*
  4.  * Created by todor on 17.01.2017 г..
  5.  */
  6. public class u04_GreaterNumber {
  7.     public static void main(String[] args) {
  8.  
  9.         Scanner scan = new Scanner(System.in);
  10.  
  11.         int num1 = Integer.parseInt(scan.nextLine());
  12.         int num2 = Integer.parseInt(scan.nextLine());
  13.  
  14.         if (num1 > num2){
  15.             System.out.println(num1);
  16.         }
  17.         else {
  18.             System.out.println(num2);
  19.         }
  20.     }
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement