X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f From: cmad_x AT yahoo DOT com (Chris Mantoulidis) Newsgroups: comp.os.msdos.djgpp Subject: Re: newbie C question Date: 24 Nov 2003 06:53:33 -0800 Organization: http://groups.google.com Lines: 35 Message-ID: References: NNTP-Posting-Host: 212.205.250.162 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1069685613 22454 127.0.0.1 (24 Nov 2003 14:53:33 GMT) X-Complaints-To: groups-abuse AT google DOT com NNTP-Posting-Date: Mon, 24 Nov 2003 14:53:33 +0000 (UTC) To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com "Keith__" wrote in message news:... > Hi > > sorry to bother you all with this but im currently at college beginning to > learn C. I have a question ive been given which i need to code and answer > but i just dont understand what it wants or how to do it. could someone > please help out? > > heres the question in full: > > 1. Read three single digit characters from the keyboard and > convert them into their numerical equivalent values (Hint: use getchar(), > subtract character zero from the digit character to convert it to its > numerical value.) what don't you understand? plus, with the hint it gives you it's like solving the problem for you. > The program should test the digits and > > > a) print an appropriate message if the digits are identical > b) the average of the three digits > c) the minimum of the three digits > d) the maximum of the three digits > e) the percentage value of the smaller number with respect to the larger. > > Thanx > > Keith anyway, plz be more specific on what you don't understand so we can help you out. E.g. what question didn't you understand? a, b, c, d, and/or e?