“Celsius à Fahrenheit à Python” Réponses codées

Comment convertir Fahrenheit en Celsius à Python


#!/usr/bin/env python
Celsius = int(raw_input("Enter a temperature in Celsius: "))

Fahrenheit = 9.0/5.0 * Celsius + 32

print "Temperature:", Celsius, "Celsius = ", Fahrenheit, " F"
Harry the Programmer

Celsius à Fahrenheit à Python

def farh(cel):
    return (cel *(9/5)) + 32
  while True:
c = int(input("Enter celcius to convert in farhrenhite :"))
f = farh(c)
print("Fahreheit Temperature is " + str(f))
Coding boy Hasya

Comment convertir Fahrenheit en Celsius à Python

#!/usr/bin/env python
Fahrenheit = int(raw_input("Enter a temperature in Fahrenheit: "))

Celsius = (Fahrenheit - 32) * 5.0/9.0

print "Temperature:", Fahrenheit, "Fahrenheit = ", Celsius, " C"
Harry the Programmer

Code python pour convertir Celsius en Fahrenheit

c=  int(input(" Temperature in Centigrade: "))
f= (9/5*(int(c))) +32
print(" Temperature in Fahrenheit: ", f)
MD. SHARIFUL ISLAM

Réponses similaires à “Celsius à Fahrenheit à Python”

Questions similaires à “Celsius à Fahrenheit à Python”

Plus de réponses similaires à “Celsius à Fahrenheit à Python” dans Python

Parcourir les réponses de code populaires par langue

Parcourir d'autres langages de code