celsius = float(input("Ingrese la temperatura en grados Celsius: "))
print("Elija la conversión:")
print("1. Convertir a Fahrenheit")
print("2. Convertir a Kelvin")
opcion = int(input("Ingrese 1 o 2: "))
if opcion == 1:
fahrenheit = (celsius * 9/5) + 32
print(f"La temperatura en Fahrenheit es: {fahrenheit:.2f}°F")
elif opcion == 2:
kelvin = celsius + 273.15
print(f"La temperatura en Kelvin es: {kelvin:.2f}K")
else:
print("Opción no válida. Ingrese 1 o 2.")
To embed this project on your website, copy the following code and paste it into your website's HTML: