summaryrefslogtreecommitdiff
path: root/1553/CH4/EX4.16/4Ex16.sce
diff options
context:
space:
mode:
Diffstat (limited to '1553/CH4/EX4.16/4Ex16.sce')
-rw-r--r--1553/CH4/EX4.16/4Ex16.sce10
1 files changed, 10 insertions, 0 deletions
diff --git a/1553/CH4/EX4.16/4Ex16.sce b/1553/CH4/EX4.16/4Ex16.sce
new file mode 100644
index 000000000..b3c8af397
--- /dev/null
+++ b/1553/CH4/EX4.16/4Ex16.sce
@@ -0,0 +1,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);