function[output] = combination_number(input1, input2) % function with two inputs
    if input1 <= 0 | input2 <= 0  
        error("numbers are not positive")
    elseif rem(input1, 1) | rem(input2, 1) 
        error("numbers are not integers")
    elseif input1 >= input2 % first check for errors, then run computations
        output = factorial(input1) / (faktorial(input2) * faktorial(input1 - input2));
    else
        output = factorial(input2) / (faktorial(input1) * faktorial(input2 - input1));
    end
end