[Color Computer] [Coco] Bug in FOR NEXT ?

James Diffendaffer jdiffendaffer at yahoo.com
Thu Jun 1 02:06:17 EDT 2006


Congratulations... you just discovered the most common test question
from any BASIC programming class.
It would list a program like that and ask what the output was.
In other words... that's not unique to the Coco.

>I can't believe that after +20 years with the CoCo I never got into 
>this... weird.
>Thanks
>
>
>Benoit Bleau wrote:
>
>>>
>> Diego,
>> That's not a bug... In (at least the coco) basic, the "for-next" 
>> variable  contains +1 at the end of the loop.
>> Try this:
>> 10 FOR A=1 to 10: NEXT
>> 20 PRINT A
>>
>> This should print 11.







------------------------ Yahoo! Groups Sponsor --------------------~--> 
You can search right from your browser? It's easy and it's free.  See how.
http://us.click.yahoo.com/_7bhrC/NGxNAA/yQLSAA/CFFolB/TM
--------------------------------------------------------------------~-> 

Brought to you by the 6809, the 6803 and their cousins! 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/ColorComputer/

<*> To unsubscribe from this group, send an email to:
    ColorComputer-unsubscribe at yahoogroups.com

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 






More information about the Coco mailing list