clc //initialisation of variables M= 5//slug g= 32 //ft/sec^2 M1= 10 //kg g1= 9.8 //m/sec^2 M2= 15 //gm g2= 980 //cm/sec^2 //CALCULATIONS W= M*g W1= M1*g1 W2= M2*g2 //RESULTS printf ('weight = %.f lb',W) printf ('\n weight = %.f N',W1) printf ('\n weight = %.f dyn',W2)