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