The objective of this assignment is to develop general understanding of using recursive functions.
P: A
Write a C program that will prompt the user to enter an integer and then it will
print on the screen all the binary numbers of length n, where n is the integer
variable inserted by the user.
Here is an example of how your program should work when you run it:
Please enter a number:
3
The binary numbers of length 3 are:
000
001
010
011
100
101
110
111
Hint:
Use a recursive function, instead of nested for loops.
P: B
Design and implement a recursive C program to determine and print the Nth line
of Pascalâs Triangle, as shown below. Pascal’s triangle is a triangular array of the
binomial coefficients in a triangle. Each interior value is the sum of the two
values above it.
Hint: use an array to store the values on each line
Please see the image on next page
Please make sure the program runs properly before you submit it. Thank you.





