summaryrefslogtreecommitdiff
path: root/1553/CH2/EX2.1/2Ex1.sce
blob: 3d1662ae69d82018c752ee1aaadc53ea0738e42f (plain)
1
2
3
4
5
6
7
8
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);