alice-teacher Decrement in a for-loop

Michael L Owen owenml at hotmail.com
Wed Jan 31 14:11:04 EST 2018


Hi Carlos- Hope I'm not too late. I've found the While Loop feature to be useful for things like this. The attached image gives a quick example of how it can work.

Have Fun,

Mike Owen



________________________________
From: alice-teachers <alice-teachers-bounces+mrgrog=outlook.com at lists.andrew.cmu.edu> on behalf of Carlos Bovell <cbovell at nburlington.com>
Sent: Tuesday, January 30, 2018 9:08 AM
To: alice-teachers at lists.andrew.cmu.edu
Subject: alice-teacher Decrement in a for-loop

Hi,

Is there a way to count down in a for-loop? This is what we're doing but it seems awfully clumsy:



[cid:42806070-ba31-405a-9e42-bda03c3684da]


Carlos Bovell
Mathematics and Computer Science Dept
Northern Burlington HS
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.andrew.cmu.edu/pipermail/alice-teachers/attachments/20180131/66faa4a1/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: While.jpg
Type: image/jpeg
Size: 167462 bytes
Desc: While.jpg
URL: <http://lists.andrew.cmu.edu/pipermail/alice-teachers/attachments/20180131/66faa4a1/attachment-0001.jpg>


More information about the alice-teachers mailing list