Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

how to do nCr in c++

Input :  n = 5, r = 2
Output : 10
The value of 5C2 is 10

Input : n = 3, r = 1
Output : 3
Source by www.geeksforgeeks.org #
 
PREVIOUS NEXT
Tagged: #nCr
ADD COMMENT
Topic
Name
6+6 =