blob: 4c22a5a256bb88c1d5c0a5e964be1ff75de24d1b (
plain)
1
2
3
4
5
6
7
8
9
|
//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);
|