View Single Post
  #2 (permalink)  
Old October 2nd, 2008, 01:10 PM
Old Pedant Old Pedant is offline
Friend of Wrox
 
Join Date: Jun 2008
Posts: 1,649
Thanks: 3
Thanked 141 Times in 140 Posts
Default

This is homework for some class, right?

So we shouldn't do homework for you or you'll never learn.

But I will give you two hints:

(1) Look at the % operator.

(2) Though you really don't need it. Just think about how INTEGER arithmetic works.
Reply With Quote