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