summaryrefslogtreecommitdiff
path: root/3808/CH2/EX2.14
diff options
context:
space:
mode:
Diffstat (limited to '3808/CH2/EX2.14')
-rw-r--r--3808/CH2/EX2.14/Ex2_14.sce13
1 files changed, 13 insertions, 0 deletions
diff --git a/3808/CH2/EX2.14/Ex2_14.sce b/3808/CH2/EX2.14/Ex2_14.sce
new file mode 100644
index 000000000..33d9121f4
--- /dev/null
+++ b/3808/CH2/EX2.14/Ex2_14.sce
@@ -0,0 +1,13 @@
+//Chapter 02:Basic Structures: Sets, Functions, Sequences, Sums and Matrices
+
+clc;
+clear;
+
+s=0
+res=[]
+mprintf("Sum of values of s for all the members of the set { ")
+for s=0:2:4
+ mprintf("%d ",s)
+ res=res+s
+end
+mprintf("} is %d",res)