Problem of the day
The first line of input contains an integer ‘T’ denoting the number of test cases.
Then the T test cases follow.
The first line of each test case contains two space separated integers ‘N’ and ‘R’ denoting the total number of students in the class and number of students to choose respectively.
For each test case, the number of ways to choose R students out of N is printed.
The output of each test case is printed in a separate line.
1 <= T <= 10
1 <= N <= 200
0 <= R <= N
where ‘T’ is the number of test cases, ‘N’ is the total number of students in the class and ‘R’ is the number of students to choose.
1
3 2
3
Ways to choose 2 students from 3 : {1,2}, {1,3}, {2,3}.
3
4 1
5 5
3 0
4
1
1