IUP Computer Science
CO 310 Fall 1983

Assignment #2

Write a program to calculate a binomial coefficient (m). Read in values for n and m from the terminal and print out a message indicating the result. Because the binomial coefficient can be expressed in terms of combinations, you can express the result in these terms.


Specific Program Requirements
1. Your program must use a recursive procedure and the above relation to calculate the binomial coefficient.

2. Your program must handle erroneous values, such as n=4, m=6.

3. Your program should include a loop that can process at least three binomial coefficients. You choose the type of loop.

4. You choose the data and the form of the printout; however, the printed results should be clear.