Update to print also the last number

This commit is contained in:
Petrutiu Mihai
2016-07-05 12:57:53 +03:00
parent 4f7eadb7d8
commit 31e6e4c30b

View File

@@ -42,7 +42,7 @@ namespace StrategyPattern.LoopWithoutLoop
public LoopStep GetNextStep(int i, int n) public LoopStep GetNextStep(int i, int n)
{ {
return Loops[i/n]; return Loops[i / (n + 1)];
} }
} }