Talk:100 doors: Difference between revisions

No edit summary
Line 12:
:::Strangely enough, the unoptimised MAXScript and Python examples demonstrate increasing the loop index by other than one. I haven't seen that in other tasks for languages where (<start>, <stop>, <step>) isn't always explicit in loop constructs. [[User:Drea|Drea]] 15:11, 16 October 2007 (MDT)
:::And looking back at the loop structures task, only a couple of language examples show that it's possible. For example, the C snippet only has "for (i=0; i<10; ++i)" (it also had one round and one curly bracket, but that's fixed now). [[User:Drea|Drea]] 15:27, 16 October 2007 (MDT)
::::Good point. Another classic task for loop increment >1 is the Sieve of Eratosthenes. --[[User:IanOsgood|IanOsgood]] 15:55, 16 October 2007 (MDT)
Anonymous user