1 2 3 4 5 6 7 8
clc //initialisation of variables M=5*14.59//slugs g=9.8//m/s^2 //CALCULATIONS W=M*g//N //RESULTS printf('The weight of substance is=% f N',W)