clc; h=7-3; //height above ground in ft g=32; //g in ft/sec square v=sqrt(2*g*h); //calculating velocity in ft/sec since PE=KE disp(v,"Velocity in ft/sec = "); //displaying result