summaryrefslogtreecommitdiff
path: root/1553/CH2/EX2.5
diff options
context:
space:
mode:
Diffstat (limited to '1553/CH2/EX2.5')
-rw-r--r--1553/CH2/EX2.5/2Ex5.sce9
1 files changed, 9 insertions, 0 deletions
diff --git a/1553/CH2/EX2.5/2Ex5.sce b/1553/CH2/EX2.5/2Ex5.sce
new file mode 100644
index 000000000..87426a4f0
--- /dev/null
+++ b/1553/CH2/EX2.5/2Ex5.sce
@@ -0,0 +1,9 @@
+//chapter 2 Ex 5
+
+clc;
+clear;
+close;
+n1=2^2*3^3*5*7^2; n2=2^3*3^2*5^2*7^4; n3=2**3*5^3*7*11;
+V=int32([n1 n2 n3]);
+Lcm=lcm(V);
+mprintf("The LCM of given numbers is %d.",Lcm);