cvs.gedasymbols.org/archives/browse.cgi | search |
From: | "C.Rothwell" <enquiries AT aditfree DOT com> |
Newsgroups: | comp.os.msdos.djgpp |
Subject: | Re: simple program problem!!! |
Date: | Sat, 25 Apr 1998 11:27:25 +0100 |
Organization: | JSW Project |
Lines: | 18 |
Message-ID: | <3541BA8C.9A2A1881@aditfree.com> |
References: | <6hn5ll$ilb$1 AT nnrp1 DOT dejanews DOT com> |
Reply-To: | enquiries AT aditfree DOT com |
NNTP-Posting-Host: | p88.nas1.is3.u-net.net |
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: > I need help on a problem to do with a simple program for a course i am > currently studying. I know most of the people reading this are far more > advanced than the question, none the less I will still ask. > I need to write a program which obtains an integer value through the keyboard > and the displays whether the integer is an even number or an odd number. 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? > Any help would be greatly appreciated. > Impress your teacher by and'ing 1 the number.
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |