[ back to toc ]

Turbo C Programming

Date: 2002/02/28 16:24

Q:
Hi its me again..the one uve answered before helps me a lot so im thankful
for that..now this one i would like to apply it also in assembly languange
but since im in turbo c maybe it could be a hint in coding also it in
assembly. I would like to have the simplest program u can give about this
problem. thanks again.

Write the C language code that will query a user temperature and convert
that temperature from Fahrenheit to Centigrade or vice versa depending
what the user wants.

The following conversion formulae will be useful:

Centigrade = (Fahrenheit - 32) * 5/9

Fahrenheit = (Centigrade * 9/5) + 32

A:
Go to a bookstore and buy the classical Kernigham and Ritchie C book. This
example is used in that book.

Regards,
Peter

[ back to toc ]