Advertisement
cardel

G29 Reto 1

Jun 14th, 2021
1,100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.28 KB | None | 0 0
  1. import math
  2. def calculoCD(capacidadDisco, valorCD):
  3.     capacidadMB = capacidadDisco*1024.0
  4.     num_cds = math.ceil(capacidadMB/700)
  5.     precio_cd = 1.19*num_cds*valorCD
  6.    
  7.     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