% Solving # 3 in sec. 2.10
% (can be easily adapted for #5).

format long 
h = 0.05;
y(1) = 1;
t(1) = 0;
nmax = round(0.2/h)

for n = 1 : nmax
    t(n) = (n-1)*h;
    y(n+1) = y(n) + h*(-t(n)*y(n));
end
y

format short e