clc //initialisation of variables s0=25//cm s1=28//cm s2=23//cm s3=10//cm s4=-11//cm s5=-40//cm //CALCULATIONS M=s1-s0+s1-s5//cm //RESULTS printf('the displacement are load=% f cm',M)