summaryrefslogtreecommitdiff
path: root/866/CH16/EX16.2/16_2.sce
diff options
context:
space:
mode:
Diffstat (limited to '866/CH16/EX16.2/16_2.sce')
-rwxr-xr-x866/CH16/EX16.2/16_2.sce14
1 files changed, 14 insertions, 0 deletions
diff --git a/866/CH16/EX16.2/16_2.sce b/866/CH16/EX16.2/16_2.sce
new file mode 100755
index 000000000..da706aacc
--- /dev/null
+++ b/866/CH16/EX16.2/16_2.sce
@@ -0,0 +1,14 @@
+clc
+//initialisation of variables
+M= 17
+N= 8
+r= 27
+st= 3
+pt= 2
+n= 8
+//CALCULATIONS
+ns= 3*(M-N+1)-r
+nk= n*pt-st
+//RESULTS
+printf ('Ns= %.f ',ns)
+printf (' \n Nk= %.f ',nk)