//Chapter 34 Ex 2 clc; clear; close; d1=19; theta=(60*%pi)/180; //converted into radian d2=d1*cos(theta); mprintf("Distance of the foot of the ladder from the wall is %.1f meters",d2);