Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Calculate Combinatorics (cards)
using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; namespace Rextester { public class Program { public static void Main(string[] args) { int n = 10; int k = 6; decimal result = (GetFactorial(n) / (GetFactorial(k) * GetFactorial(n-k))); Console.WriteLine(result); } public static decimal GetFactorial(int n) { decimal result = 1; for (int i = n; i > 1; i--) { result = result * i; } return result; } } }
run
|
edit
|
history
|
help
0
перегружаемый оператор
pascal
Binary Search Recursive
Work Days
Operators
remove special char c#
domain extraction
sadxasxd
a
Sort String