X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f Message-ID: <3FC3D522.29F510C2@yahoo.com> From: CBFalconer Organization: Ched Research X-Mailer: Mozilla 4.75 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 Newsgroups: comp.os.msdos.djgpp Subject: Re: another newbie C question References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Lines: 29 Date: Wed, 26 Nov 2003 01:06:57 GMT NNTP-Posting-Host: 12.76.140.197 X-Complaints-To: abuse AT worldnet DOT att DOT net X-Trace: bgtnsc04-news.ops.worldnet.att.net 1069808817 12.76.140.197 (Wed, 26 Nov 2003 01:06:57 GMT) NNTP-Posting-Date: Wed, 26 Nov 2003 01:06:57 GMT To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Keith__ wrote: > > im having probs with the following program. i need it to loop after a > percentage is entered, asking for another one continuosly unless the > percentage is a negative in which case the program should end. could someone > please show me what im missing. Your shift key is broken. Write down what you want, and then write functions to implement the required actions: int main(void) { int mark; while ((mark = getamark()) > 0 { printclassification(mark); } } Now you can think about how to implement the simpler functions getamark and printclassification. -- Chuck F (cbfalconer AT yahoo DOT com) (cbfalconer AT worldnet DOT att DOT net) Available for consulting/temporary embedded and systems. USE worldnet address!