Complete the program by writing and calling a function that converts a temperature from Celsius into Fahrenheit. Use the formula F = C x 9/5 + 32. Test your program knowing that 50 Celsius is 122 Fahrenheit.

Respuesta :

Answer:

C = int(input("Enter a number ::))

F = (C * (9 /5)) + 32

print(" {} in Fahrenheit is {} ". format(C, F))

Explanation:

The program takes an input from the user and converts the input to a fahrenheit.

fichoh

The function convert temperature values given in Celcius to Fahrenheit. The program is written in python 3 thus ;

cel_temp = int(input("Enter temperature value : "))

#takes input from user

def conv(cel_temp):

#initialize a function that takes in a single parameter

return ((cel_temp * 1.8) + 32)

#return the converted Fahrenheit temperature

print(conv(cel_temp))

A sample run of the program ls attached

Learn more : https://brainly.com/question/25399595

Ver imagen fichoh