Answer:
The code is as attached here.
Explanation:
The code is as given below
theta = input(' Enter the value of theta?');
y = sin(theta*pi()/180);
z = cos(theta*pi()/180);
if z < 0.01
fprintf('The value of theta is very low')
else
t=round(y/z,2);
disp(['The value of tangent theta is ',num2str(t)]);
end