def sub(num1:int,num2:int) -> int:
    """sub is function used to give the subtraction 
    of two inputted number

    if num1 is greater than num2 then returns num1 - num2
    
    else 

       num2 - num1

    Args:
        num1 (int): first number
        num2 (int): second number

    Returns:
        int: subtraction of inputted number
    """
    result = abs(num1-num2) 
    return result