1 2 3 4 5 6 7 8 9
//clc() z = 15;//m PE = 2000;//J g = 9.8067;//m/s^2 m = PE/(z*g); disp("kg",m,"mass = ") v = 50;//m/s KE = 1/2*m*(v^2)/1000; disp("kJ",KE,"kinetic energy = ")