//Initilization of variables r=0.05 //m cylinder radius g=9.8 //m/s^2 //Calculations //Here the equation has been solved in terms of the veriables //Hence we directly consider the final result av=(2*g)/3 //m/s^2 //Result clc printf('The value of av is %f m/s^2',av)