Please try your approach on IDE first before moving on to the solution. Abmis not equal to ambmm. The idea is simply based on below formula.
We can use distributive property of modulor operator to find nCr p using above formula.
Decimal to Binary Conversion Using C. A simple code can be created with the following knowledge that. Abmis not equal to ambmm. In every iteration update ans as ans n-i i1 where i is the loop counter.