Advertisement
teslariu

cubo

Jun 22nd, 2021
175
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.51 KB | None | 0 0
  1. #!/usr/bin/env python
  2. # -*- coding: utf-8 -*-
  3. #
  4. """
  5. Programa que calcula el cubo de un numero
  6. """
  7. __author__ = "Alejandro"
  8. __copyright__ = "ALeInc"
  9. __credits__ = ["Pedro", "Josefa", "Ana"]
  10. __license__ = "GPLv3"
  11. __version__ = "1.0"
  12. __email__ = "develop@gmail.com"
  13. __status__ = "Development"
  14.  
  15.  
  16. def cubo(x):
  17.     """Calcula el cubo de un número"""
  18.     y = x**3
  19.     return y
  20.    
  21. if __name__ == "__main__":
  22.     x = int(input("Ingrese un numero: "))
  23.     y = cubo(x)
  24.     print(f"El cubo de {x} es {y}")
  25.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement