+ 2
How to print all possible combinations of a list or array of numbers.
Please help. I need to know how to print to screen all the possible combinations(not permutations) of a list of numbers.
1 ответ
0
Loops inside of loops:
for(int x = 0; x < 5; x++){
for(int y = 0; y < 3; y ++){
Console.WriteLine("{0} : {1}", x, y);
}
}