1 2 3 4 5 6 7 8 9
clc //initialisation of variables k= 1.667 L= 0.5 //ft g= 32.2 //ft/sec^2 //CALCULATIONS Cd= (k/L)/(sqrt(2*g)*(2/3)) //RESULTS printf (' Coefficiant of discharge = %.3f ',Cd)