PDA

View Full Version : make an object say whether it's even or odd


tlrwlf
10-05-2008, 06:29 PM
How do i make an object say whether the number typed in is even or odd.

solo
10-06-2008, 03:46 AM
use the following tile:
[obj] say "whether the number typed in is even or odd" ;
:)

DickBaldwin
10-06-2008, 05:15 AM
How do i make an object say whether the number typed in is even or odd.
Go to Google and search for one or both of the following:

baldwin alice modulus site:dickbaldwin.com

baldwin alice "Math.IEEERemainder"site:dickbaldwin.com

You may find something there that will help you.

Dick Baldwin
Free Alice tutorials: http://www.dickbaldwin.com/tocalice.htm
Free Scratch tutorials: http://www.dickbaldwin.com/tocHomeSchool.htm
Free Java/C#, etc. tutorials: http://www.dickbaldwin.com/toc.htm