C# – Arrays

This is part the first C# problem, from arrays, given at Telerik C# 2 courses. Check it out.

The problem itself is put as comments in the first two lines. In general, one should write a simple console application, which reads a number and then generates and prints all permutations of the number.

If 3 is given, then all combinations of 1,2 and 3 are given. It is interesting to try with bigger numbers, but not with too big (up to 10), because the printing takes a long time 🙂

The compiled code is here. Download it to check the performance.

The code of the current article is part of the free Bulgarian C# programming book.