delorie.com/archives/browse.cgi | search |
From: | kenmel AT microtech DOT com DOT au |
Newsgroups: | comp.os.msdos.djgpp |
Subject: | simple program problem!!! |
Date: | Thu, 23 Apr 1998 05:37:41 -0600 |
Organization: | Deja News - The Leader in Internet Discussion |
Lines: | 11 |
Message-ID: | <6hn5ll$ilb$1@nnrp1.dejanews.com> |
NNTP-Posting-Host: | 203.39.134.65 |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
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. -----== Posted via Deja News, The Leader in Internet Discussion ==----- http://www.dejanews.com/ Now offering spam-free web-based newsreading
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |