155k views
3 votes
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.

User Ef Ge
by
6.1k points

2 Answers

2 votes

Final answer:

To convert a temperature from Celsius to Fahrenheit, you can use the formula: F = C x 9/5 + 32. For example, 50 degrees Celsius is equal to 122 degrees Fahrenheit.

Step-by-step explanation:

To convert a temperature from Celsius to Fahrenheit, you can use the formula: F = C x 9/5 + 32. Let's say we want to convert 50 degrees Celsius to Fahrenheit. We can plug in C=50 into the formula: F = 50 x 9/5 + 32. Simplifying the equation, we get: F = 90 + 32 = 122. Therefore, 50 degrees Celsius is equal to 122 degrees Fahrenheit.

User Jeya
by
5.9k points
5 votes

Answer:

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

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

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

Step-by-step explanation:

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

User Simon Price
by
5.5k points