(The formula for converting a temperature from Fahrenheit to Celsius is
C=5/9(F-32)
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 converted Celsius temperature.
Demonstrate the function is correct by calling it in a loop that displays a table of the Fahrenheit temperature 0 through 20 and their Celsius temperature equivalents)
At line 8, change the variables from int to double. Otherwise your results will always be integers which won't be too accurate.
Write a function named celsius that accepts a Fahrenheit temperature as an argument. The function should return the converted Celsius temperature
You need to write this function.
Demonstrate the function is correct by calling it in a loop that displays a table of the Fahrenheit temperature 0 through 20 and their Celsius temperature equivalents)
You need to write this loop.
Notice that the program requires no input from the user. It just calculates the values and prints them out.