[programmingbasics] Re: Programming Basics : Lesson 2, Fundamentals (A)

  • From: Bryan Prusha <bryanprusha@xxxxxx>
  • To: programmingbasics@xxxxxxxxxxxxx
  • Date: Sat, 09 Oct 2010 22:42:11 -0700

On Oct 9, 2010, at 4:58 PM, Cassie Maas wrote:

> Bryan,
> 
> Would taking modulo 2 to a number tell you if it was even or odd? based on 
> whether or not it returned a value (ie a remainder?)

Yes, that's it exactly. I've used this coding style quite often.

Other related posts: