Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
| From | Ian Collins <ian-news@hotmail.com> |
|---|---|
| Newsgroups | comp.lang.c |
| Subject | Re: Solution ? |
| Date | 2011-07-24 19:58 +1200 |
| Message-ID | <9921m2FkjuU3@mid.individual.net> (permalink) |
| References | <eb2c9e14-4d82-43f6-9859-bd9961df7c52@t38g2000prj.googlegroups.com> |
On 07/24/11 07:34 PM, HumbleWorker wrote: > Write a C program to create an array of 10 integer elements. Receive 5 > even numbers and 5 odd numbers from the user as input at the keyboard. > While receiving input from the user, following point is to be kept in > mind - If the user enters more than 5 EVEN or ODD numbers in the > array, discard that input, display a warning message on the console > and ask for a fresh input from the user. In other words, maximum limit > for entering EVEN and ODD numbers in the array is 5. Store all the ODD > numbers in the FIRST HALF locations of the array and store EVEN > numbers in the second half locations of the array. Finally, display > the contents of the array. Why? -- Ian Collins
Back to comp.lang.c | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Solution ? HumbleWorker <amardeep.developer@gmail.com> - 2011-07-24 00:34 -0700
Re: Solution ? Ian Collins <ian-news@hotmail.com> - 2011-07-24 19:58 +1200
Re: Solution ? "Kleuskes & Moos" <kleuske@xs4all.nl> - 2011-07-24 00:58 -0700
Re: Solution ? pete <pfiland@mindspring.com> - 2011-07-24 08:49 -0400
Re: Solution ? HumbleWorker <amardeep.developer@gmail.com> - 2011-07-24 10:34 -0700
Re: Solution ? HumbleWorker <amardeep.developer@gmail.com> - 2011-07-24 10:38 -0700
Re: Solution ? pete <pfiland@mindspring.com> - 2011-07-27 13:28 -0400
Re: Solution ? Ben Bacarisse <ben.usenet@bsb.me.uk> - 2011-07-24 20:23 +0100
Re: Solution ? Fonz <fonz@bogus.from.address.nl> - 2011-07-24 17:32 +0000
Re: Solution ? Seebs <usenet-nospam@seebs.net> - 2011-07-24 22:09 +0000
csiph-web