1 2 3 4 5 6 7 8
clc //initialisation of variables g=9.8//m/s^2 h=20//m //CALCULATIONS V=sqrt(2*g*h)//m//s //RESULTS printf('The velocity is=% f m/s',V)