My issue
My code
#include <iostream>
using namespace std;
int main() {
int t;
cin>>t;
while(t--)
{
int n,k;
cin>>k>>n;
double res= 1;
int i=1;
while(i<=k)
{
res=res*(n-k+i)/i;
}
cout<<res<<endl;
}
return 0;
}
Problem Link: CODEBU13 Problem - CodeChef