Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package ConditionalStatements;
- import java.util.Scanner;
- public class P02GreaterNumber {
- public static void main(String[] args) {
- Scanner scanner = new Scanner(System.in);
- int firstNum = Integer.parseInt(scanner.nextLine());
- int secondNum = Integer.parseInt(scanner.nextLine());
- if (firstNum > secondNum) {
- System.out.println(firstNum);
- } else {
- System.out.println(secondNum);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement