From: Erik Max Francis Newsgroups: comp.os.msdos.djgpp Subject: Re: simple program problem!!! Date: Thu, 23 Apr 1998 08:17:57 -0700 Organization: Alcyone Systems Lines: 18 Message-ID: <353F5BA5.421A0E76@alcyone.com> References: <6hn5ll$ilb$1 AT nnrp1 DOT dejanews DOT com> NNTP-Posting-Host: charmaine.alcyone.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk kenmel AT microtech DOT com DOT au wrote: > The > problem I have is - within the program how do I direct the program to > distinguish whether the value is an odd or even number? An integer is even if it is evenly divisible by 2 (that is, the remainder of division by 2 is 0). Have fun . . . -- Erik Max Francis, &tSftDotIotE / mailto:max AT alcyone DOT com Alcyone Systems / http://www.alcyone.com/max/ San Jose, California, United States / icbm:+37.20.07/-121.53.38 \ "Magnificent / desolation." / Buzz Aldrin, on the Moon