Page 1 of 1

Temperature Conversion

Posted: Tue Jun 21, 2005 11:05 am
by Zeerus
nevermind, I figured my problem out
it was just simple code formatting errors

Posted: Tue Jun 21, 2005 11:15 am
by Deleter
its because 5 / 9 * (f - 32) = -17.77777778. f = 0. what you have to do is put the LET c = 5 / 9 * (f - 32) AFTER you input f.
so like this:

Code: Select all

INPUT "Please enter a temperature in Fahrenheit"; f
LET c = 5 / 9 * (f - 32)
PRINT "A temperature of "; f ;" degrees Fahrenheight equals "; c ;" degrees celsius"
'
END 

Posted: Tue Jun 21, 2005 11:15 am
by Zeerus
I figured that out a few minutes ago
I must have changed my post right as you posted your answer

thanks for hte help anyway

Posted: Tue Jun 21, 2005 12:04 pm
by Deleter
np, I noticed that you edited it after I posted....I didn't bother messing around with it