FINDING TIME BY GAVITY AND HEIGHT


WRITE A PROGRAM TO  FIND THE TIME TAKEN  BY AN OBJECT TO FALL BY ASKING THE HEIGHT ON EARTH. 



code:-


h=float(input("enter the hieght from which ball is dropped : "))

g=9.8

t=(2*h/g)**(1/2)

print("the time taken to ball to come back to the ground from the top of the building =",t)        

output:-

enter the hieght from which ball is dropped : 45
the time taken to ball to come back to the ground from the top of the building= 3.0304576336566322



Comments

Followers

Popular posts from this blog

Arin Bansal: For loop