Re: A quiz...

From: Hades (tourach@servtech.com)
Date: 06/10/96


> 
> #define NEXT_LOWER_EVEN_NUM(k)  (k - (k % 2))
> 
> That's my entry.  Note that the define name is longer than the code :)
> F
> 

Doh I completely forgot about the % function. :)
My original answer to this was: (If you dont wanna see it for some strange
reason stop reading now :)













































My answer for those of you who give a crap :P

((k >> 1) << 1)

It even looks pretty :)

Hades - really needs to get to bed now :)



This archive was generated by hypermail 2b30 : 12/18/00 PST