Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env python
- # -*- coding: utf-8 -*-
- # Ejemplo de template sin menu
- # Script que pide un radio y devuelve el área del círculo
- while True:
- #----- inicio instrucciones del script--------
- radio = float(input("Radio del círculo: "))
- print(f"Superficie: {3.1416*radio**2:.2f}")
- #------ fin de instrucciones del script--------
- opcion = input("Presione cualquier tecla para continuar (o 'x' para salir): ")
- if opcion.lower() == "x":
- print("Gracias por usar este programa...")
- break
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement