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