Python-Volume Greater Than Sun

def volumeOfCube(l):
    return l**3

cubeLength=1

i=1
while i == i: #True
    cubeLength*=2
    v=volumeOfCube(cubeLength)
    print("The volume of the cube whose length side of "+str(cubeLength)+" is ",v,"After ",i," times doubled")
    if v > 1.4*10**27:
        break
    i+=1

dahan1999

1 Comment

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Posts