Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Permutations
- {
- static void Main()
- {
- Console.WriteLine("Enter value for N: ");
- int n = int.Parse(Console.ReadLine());
- Recursion rec = new Recursion();
- rec.InputSet = rec.MakeArray(n);
- rec.CalcPermutation(0);
- rec.InputSet = rec.MakeArray(n + 1);
- rec.CalcPermutation(0);
- Console.WriteLine("# of Permutations: " + rec.PermutationCount);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement