>Celsius Temperature Table
The formula for converting a temperature from Fahrenheit to Celsius is
where F is the Fahrenheit temperature and C is the Celsius temperature. Write a function
named celsius that accepts a Fahrenheit temperature as an argument. The function
should return the temperature, converted to Celsius. Demonstrate the function by
calling it in a loop that displays a table of the Fahrenheit temperatures 0 through 20
and their Celsius equivalents.
book: Starting out with c++
this is what i have so far, can any one please help me out...
Well the errors that c++ gives me when I enter the code are: you're missing a semicolon on line 4, and then redeclaring that on line 6. Also " local function definitions are illegal". Does it specify what kind of loop you need, I think a do-while loop would be better than a for loop in this case.
What is it that you're having trouble with? Don't just throw the problem at us with your half-assed attempt and expect us to finish it for you. And we can't do much for you when all you basically say is "I'm having trouble with this code. HALP!"