summaryrefslogtreecommitdiff
path: root/1553/CH4/EX4.17/4Ex17.sce
blob: 1936ac642d9089974e09f254d85d08912ae87911 (plain)
1
2
3
4
5
6
7
8
9
10
//chapter 4 Ex 17

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