Mail Archives: djgpp/1998/04/23/12:31:05
From: | Erik Max Francis <max AT alcyone DOT com>
|
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
|
To: | djgpp AT delorie DOT com
|
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp
|
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
- Raw text -