AnandaVieira

Exercicio 9

Feb 25th, 2021 (edited)
218
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.34 KB | None | 0 0
  1. # 9 - Faça um Programa que peça a temperatura em graus Fahrenheit, transforme e mostre a temperatura em graus Celsius.
  2. # C = 5 * ((F-32) / 9).
  3.  
  4. fah = float(input("Digite o valor da temperatura em Farenheit: "))
  5. vt = fah - 32 # vt >> Variável temporária
  6. cel = 5 * vt / 9
  7. print('A temperatura Farenheit convertida em graus Celsius é de: ',cel)
Add Comment
Please, Sign In to add comment