Question: Write a C++ program to prompt the user for 2 numbers, n and r. Calculate and show the values of each permutation and combination with

Write a C++ program to prompt the user for 2 numbers, n and r. Calculate and show the values of each permutation and combination with repitiion and without repition. Output should be the 4 numbers C(n,r) and P(n,r) for repition and without repition.

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!