{"id":4215,"date":"2021-09-23T23:00:00","date_gmt":"2021-09-23T17:30:00","guid":{"rendered":"https:\/\/www.codingbroz.com\/?p=4215"},"modified":"2021-09-23T13:55:48","modified_gmt":"2021-09-23T08:25:48","slug":"c-program-to-calculate-the-value-of-npr","status":"publish","type":"post","link":"https:\/\/www.codingbroz.com\/c-program-to-calculate-the-value-of-npr\/","title":{"rendered":"C Program To Calculate The Value of nPr"},"content":{"rendered":"\n

In this post, we will learn how to calculate the value of nPr using C<\/strong> Programming language.<\/p>\n\n\n\n

\"C<\/figure>\n\n\n\n

nPr<\/strong> represents the probability of selecting an ordered set of \u2018r\u2019<\/strong> objects from a group of \u2018n\u2019<\/strong> number of objects. The order of objects matters in the case of permutation.<\/p>\n\n\n\n

The formula to find the value of nPr<\/strong> is given by nPr = n! \/ (n – r)!<\/strong> where n<\/strong> is the total number of objects and r<\/strong> is the selected objects.<\/p>\n\n\n\n

We will be using the above formula in our program to calculate the value of nPr<\/strong>.<\/p>\n\n\n\n

So, without further ado, let\u2019s begin this tutorial.<\/p>\n\n\n\n

\n