Paul Clapham wrote:No, that isn't quite right.
You didn't get it right because your variable names "i" and "j" don't mean anything so it's easy to get them confused. Which you did.
I always find it easier to think of an example while I am working on code. In your case:
2 4 6 8 10 ...
you don't want to start at 2, you want to start at 4. Likewise with
3 6 9 12 15 ...
you don't want to start at 3, you want to start at 6. Does a pattern start to appear?
Sebastien Zerbato wrote:Ok yeah I didn't see that part of the comment before weird.
And yeah I agree and that was what I tried to do by saying "2*i".
Sebastien Zerbato wrote:so... Am I right ?