Question: Programming in C Write a program to calculate the factorial of a given number which is given by. Factorial of a given number n =

Programming in C

Write a program to calculate the factorial of a given number which is given by. Factorial of a given number n = n! = n*(n-1)*(n-2)*..*1

Using the above code of finding factorial write a code to calculate the permutation nPr with given values n and r (i.e) nPr = n! / (n-r)! You have to provide inputs for the values n and r

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!