[comp.lang.pascal] Fahrenheit Celcius HELP!

c_wilson@oxy.edu (Clarence Regis Wilson) (10/03/89)

In article <16846@watdragon.waterloo.edu> someone writes:
>I need a simple piece of code to convert a string celsius/fahrenheit
>to a fahrenheit/celsius.....
>
>function convert: integer;
>var
>	 value : intger;
>	 letter: char;
>begin
>value := 0;

Here's where you missed an important point.  A while statement uses an
entry condition, as opposed to a repeat statement which will always
execute at least once.	A while statement may never execute.  You
should insert this line:

read(letter);