You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 23, 2018. It is now read-only.
//This program is used to find the numbers of possible Combinations
/*
This program repeatedly reads in a non-negative integer N followed by a second non-negative integer K, and prints out the number of ways you can choose K items from among N total items. We call this "N-choose-K", and the formula for "N-choose-K" is:
N! / (K! * (N-K)!)
Input Format:
The input consists of two integers N and K respectively.
Output Format:
The output contains a single integer indicating the result given the integers N and K.
*/
#include <iostream>
using namespace std;
double fact(double x) //function to find factorial