Update to print also the last number
This commit is contained in:
@@ -42,7 +42,7 @@ namespace StrategyPattern.LoopWithoutLoop
|
||||
|
||||
public LoopStep GetNextStep(int i, int n)
|
||||
{
|
||||
return Loops[i/n];
|
||||
return Loops[i / (n + 1)];
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user