Mail Archives: djgpp/2003/11/24/10:01:02
"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 -