clc //initialisation of variables v=10//m/sec f=20//kg g=9.81//m/sec q=12//m/sec //CALCULATIONS M=f/q//kg*m^-1 sec^2 G=M*g//kg //RESULTS printf('the acceleration due to gravity is =% f kg',G)