summaryrefslogtreecommitdiff
path: root/1553/CH4/EX4.16/4Ex16.sce
blob: b3c8af3974e7c7b71346eee6a20186a2da7a84a7 (plain)
1
2
3
4
5
6
7
8
9
10
//chapter 4 Ex 16

clc;
clear;
close;
a=1;
for n=2:99
    a= a*(1-(1/(1+n)));
end
mprintf("The value is %.2f",a);