Advertisement
teslariu

modulo_cubo

Nov 13th, 2021
701
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.46 KB | None | 0 0
  1. #!/usr/bin/env python
  2. # -*- coding: utf-8 -*-
  3. #
  4. """
  5. Programa que calcula el cubo de un nro
  6. """
  7.  
  8. __author__ = "Ale"
  9. __copyright__ = "Curso de Python"
  10. __credits__ = ["Juan", "Pepe"]
  11. __license__ = "GPL"
  12. __version__ = "1.0"
  13. __email__ = "tatuss@ciudad.com.ar"
  14. __status__ = "Development"
  15.  
  16. def cubo(x):
  17.     """Calculo de el cubo de un nro"""
  18.     return x**3
  19.    
  20. if __name__ == "__main__":
  21.     x = int(input("Ingrese un entero: "))
  22.     print(f"El cubo de {x} es {cubo(x)}")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement