Thread
:
Even and odd
View Single Post
#
4
16-10-2010, 15:09
Greg McKaskle
Registered User
FRC #2468 (Team NI & Appreciate)
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,751
Re: Even and odd
To keep it integer, use the remainder and quotient block. It is similar to the mod() operation in some other languages. If N div 2 has a remainder of 0, it was even.
Greg McKaskle
Greg McKaskle
View Public Profile
Find all posts by Greg McKaskle
Find CD-Media Photos by Greg McKaskle
Find CD-Media Papers by Greg McKaskle