how do i modify the following program so that it computes and prints a table of celsius temperatures and the fahrenheit equivalent every 10 degrees from 0C to 100C
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
Converter.py # A program to convert Celsius temps to Fahrenheit def main(): print ( "This program converts Temperature readings" ) print ( "from celsius to fahrenheit" ) celsius = eval ( input ( "what is the celsius temperature? " )) fahrenheit = ( 9 / 5 * celsius + 32 ) print ( "The temperature is" , fahrenheit, "degrees Fahrenheit." ) main() |