# Introduction In this lab, you will learn how to compute combinations (nCr) using a C program. The lab covers two main steps: reading the input values for n and r, and then implementing the formula to calculate the combination nCr = n! / (r! \* (n-r)!). By the end of this lab, you will have a working C program that can compute combinations for any given values of n and r. The lab starts by demonstrating how to read the input values for n and r using the `scanf()` function. It then introduces the implementation of factorial and combination calculation functions, which are used to compute the final result. The lab provides the complete code and step-by-step instructions, making it easy for you to follow along and apply the concepts in your own projects.
Click the virtual machine below to start practicing