summaryrefslogtreecommitdiff
path: root/1553/CH2/EX2.19/2Ex19.sce
diff options
context:
space:
mode:
Diffstat (limited to '1553/CH2/EX2.19/2Ex19.sce')
-rw-r--r--1553/CH2/EX2.19/2Ex19.sce8
1 files changed, 8 insertions, 0 deletions
diff --git a/1553/CH2/EX2.19/2Ex19.sce b/1553/CH2/EX2.19/2Ex19.sce
new file mode 100644
index 000000000..233a14686
--- /dev/null
+++ b/1553/CH2/EX2.19/2Ex19.sce
@@ -0,0 +1,8 @@
+//chapter 2 Ex 19
+clc;
+clear;
+close;
+n1=20; n2=25; n3=35; n4=40;
+n=lcm(int32([n1,n2,n3,n4]));
+rem=6;
+mprintf("The least such number is %d",n-rem);