YavorGrancharov

GreaterNumber

Dec 15th, 2016
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.44 KB | None | 0 0
  1. import java.util.Scanner;
  2. public class GreaterNumber {
  3.     public static void main(String[] args) {
  4.         Scanner console = new Scanner(System.in);
  5.         int num1 = Integer.parseInt(console.nextLine());
  6.         int num2 = Integer.parseInt(console.nextLine());
  7.         if (num1 > num2) {
  8.             System.out.println("Greatre number: " + num1);
  9.         } else {
  10.             System.out.println("Greater number: " + num2);
  11.         }
  12.     }
  13. }
Add Comment
Please, Sign In to add comment