delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2003/11/24/10:01:02

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: <a8587dd9.0311240653.7d669bc7@posting.google.com>
References: <bpsopf$3ak$1 AT newsg1 DOT svr DOT pol DOT co DOT uk>
NNTP-Posting-Host: 212.205.250.162
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__" <asdth AT hotmail DOT com> wrote in message news:<bpsopf$3ak$1 AT newsg1 DOT svr DOT pol DOT co DOT uk>...
> 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?

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019