% nchoosek_formula.m
%  Compute n-choose-k.
%
n = input ( 'Enter the value of N: ' );
k = input ( 'Enter the value of K: ' );

value = factorial ( n ) / ( factorial ( k ) * factorial ( n - k ) );

fprintf ( ' %d-Choose-%d = %d\n', n, k, value );

