151k views
0 votes
Write a program that converst the temperature from Celcius to Fahrenheit. The formula is: F (9/5)C+32

User Nuffin
by
5.4k points

2 Answers

0 votes

Answer:

F

=

9

5

C

+

32

Subtract 32 from both sides:

F

32

=

9

5

C

Multiply both sides by 5:

5

(

F

32

)

=

9

C

Divide both sides by 9:

5

9

(

F

32

)

=

C

or

C

=

5

9

(

F

32

)

Step-by-step explanation:

User Mlamp
by
5.4k points
5 votes

Answer:

celcius = float(input())

farenheit = (9/5) * celcius + 32

print(farenheit)

Step-by-step explanation:

Step 1 read the celcius data

celcius = float(input())

Step 2 calculate the farenheit data with the equetion (9/5)C+32

farenheit = (9/5) * celcius + 32

Step 3 show results

print(farenheit)

User Robert Brooker
by
5.5k points