ss="hljs-literal">result</span> *= n
    dec n

<span class="hljs-keyword">proc</span> comb(n, k: <span class="hljs-built_in">int32</span>): <span class="hljs-type">BigInt</span> =
  <span class="hljs-literal">result</span> = perm(n, k)
  <span class="hljs-keyword">var</span> k = k
  <span class="hljs-keyword">while</span> k &gt; <span class="hljs-number">0</span>:
    <span class="hljs-literal">result</span> = <span class="hljs-literal">result</span> <span class="hljs-keyword">div</span> k
    dec k

dump
