summaryrefslogtreecommitdiff
path: root/3808/CH2/EX2.13
diff options
context:
space:
mode:
Diffstat (limited to '3808/CH2/EX2.13')
-rw-r--r--3808/CH2/EX2.13/Ex2_13.sce19
1 files changed, 19 insertions, 0 deletions
diff --git a/3808/CH2/EX2.13/Ex2_13.sce b/3808/CH2/EX2.13/Ex2_13.sce
new file mode 100644
index 000000000..515671e8a
--- /dev/null
+++ b/3808/CH2/EX2.13/Ex2_13.sce
@@ -0,0 +1,19 @@
+//Chapter 02:Basic Structures: Sets, Functions, Sequences, Sums and Matrices
+
+clc;
+clear;
+
+j=[]
+s=[]
+i=0
+upj=input("Enter the upper limit for the inner summation:");
+lowj=input("Enter the lower limit for the inner summation:");
+upi=input("Enter the upper limit for the outer summation:");
+lowi=input("Enter the lower limit for the outer summation:");
+for i=lowj:upj+1
+ j=j+1
+end
+for l=lowi:upi+1
+ s=s+(j*l)
+end
+mprintf("%d",s)