1 2 3 4 5 6 7 8 9
clc clear //input v=120 //velocity a=75 //accleration //calculation of time t=2*v/(a*cosd(45))//eqn of uniformly accelerated body //output printf("the time taken is %3.3f s",t)