cvs.gedasymbols.org/archives/browse.cgi | search |
From: | gareth Bushell <gbushell AT cblsouth DOT demon DOT co DOT uk> |
Newsgroups: | comp.os.msdos.djgpp |
Subject: | Re: simple program problem!!! |
Date: | Thu, 23 Apr 1998 12:31:22 GMT |
Organization: | CBL Technology Ltd |
Message-ID: | <867720472wnr@cblsouth.demon.co.uk> |
References: | <6hn5ll$ilb$1 AT nnrp1 DOT dejanews DOT com> |
Reply-To: | gbushell AT cblsouth DOT demon DOT co DOT uk |
Lines: | 47 |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
Hmm homework Two methods method number 1 if(number%2) { //odd printf("ODD number"); } else } // even printf("EVEN number); } method number 2 Do some work ;-) In article: <6hn5ll$ilb$1 AT nnrp1 DOT dejanews DOT com> kenmel AT microtech DOT com DOT au writes: > > 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 > > -- -------------------------------------------------- Email : garth_42 AT rock DOT com
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |