PYTHON   23

celsius fahrenheit py

Guest on 13th August 2022 07:58:11 AM

  1. #!/usr/bin/env python3
  2. # -*- coding: utf-8 -*-
  3.  
  4. @author: mac0110
  5. """
  6.  
  7. print("Conversor de Celsius para Fahrenheit")
  8. tc = float(input("Digite a temperatura em Celsius: "))
  9. tf = tc * 9 / 5 + 32
  10. print(f"{tc} Celsius são {tf} Fahrenheit")

Raw Paste


Login or Register to edit or fork this paste. It's free.