The world’s Largest Sharp Brain Virtual Experts Marketplace Just a click Away
Levels Tought:
University
| Teaching Since: | Apr 2017 |
| Last Sign in: | 438 Weeks Ago, 1 Day Ago |
| Questions Answered: | 9562 |
| Tutorials Posted: | 9559 |
bachelor in business administration
Polytechnic State University Sanluis
Jan-2006 - Nov-2010
CPA
Polytechnic State University
Jan-2012 - Nov-2016
Professor
Harvard Square Academy (HS2)
Mar-2012 - Present
The combination function C ( n , k ) gives the number of different (unordered) k-element subsets
that can be found in a given set of n elements. The function can be computed from the for- mula
--Â -Â ---
Â
Â
Implement this formula.
C ( n , k ) =
--------- n !--------
k !( n – k )!
imp-----------lem-----------ent-----------ati-----------on -----------of -----------the----------- fo-----------rmu-----------la -----------dep-----------end-----------s o-----------n w-----------hat----------- fu-----------nct-----------ion-----------s o-----------ne -----------can----------- co-----------unt----------- on-----------. a-----------) f-----------unc-----------tio-----------n f-----------act-----------ori-----------al -----------(sy-----------nta-----------x "-----------FAC-----------TOR-----------IAL-----------(k)----------- ? -----------k!"-----------) i-----------s p-----------res-----------ent-----------: {----------- RE-----------AD -----------n ,----------- k -----------NUM-----------ERA-----------TOR-----------