import java.lang.*;
import java.util.*;

public class Main {
    
    static int max_of_two_numbers(int a , int b){  //input parameters  //fun defination
        if(a>b){ return a ; }
        else { return b ; }
        
    }
        
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int x = sc.nextInt();
        int y = sc.nextInt();
        System.out.print(max_of_two_numbers(x,y) + " is max");  // function calling 

    }
}

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: