Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import math
- def calculoCD(capacidadDisco, valorCD):
- capacidadMB = capacidadDisco*1024.0
- num_cds = math.ceil(capacidadMB/700)
- precio_cd = 1.19*num_cds*valorCD
- return f"El número de CD que se requiere es {num_cds} y el valor total de los CD es {precio_cd}"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement