Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created May 24, 2021 23:54
Show Gist options
  • Save parzibyte/82a0c70f33b5785eb9c64e8161cd26e3 to your computer and use it in GitHub Desktop.
Save parzibyte/82a0c70f33b5785eb9c64e8161cd26e3 to your computer and use it in GitHub Desktop.
import math
# https://parzibyte.me/blog
# El valor puede venir de cualquier lugar
diametro = float(input("Ingresa el diámetro: "))
circunferencia = diametro * math.pi
radio = diametro / 2
print(f"La circunferencia es {circunferencia} y el radio es {radio}")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment