clc //initialisation of variables l= 6 //ft g= 32.2 //ft/sec^2 //CALCULATIONS T= 2*%pi*sqrt(l/g) //RESULTS printf ('natural period ofthe system = %.2f sec',T)