clear // //Given //Variable declaration L=4*1000 //Length in mm //Calculation thetaA=((%pi/180)*(1)) //Slope at the ends in radians yc=(thetaA*(L/3)) //Deflection at the centre in mm //Result printf("\n Deflection at the centre = %0.3f mm",yc)