Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- static void NestedLoops(int currentLoop)
- {
- if (currentLoop == numberOfLoops)
- {
- PrintLoops();
- return;
- }
- for (int counter=1; counter<=numberOfIterations; counter++)
- {
- loops[currentLoop] = counter;
- NestedLoops(currentLoop + 1);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement