summaryrefslogtreecommitdiff
path: root/1553/CH2/EX2.7/2Ex7.sce
blob: 9666e0f4b67ffaa7dd04c0578bcdc330d55898ed (plain)
1
2
3
4
5
6
7
8
9
10
11
12
//chapter 2 Ex 7

clc;
clear;
close;
n1=16; n2=24; n3=36; n4=54;
V=int32([n1 n2 n3 n4]);
Lcm=lcm(V);
mprintf("The LCM of given numbers is %d.",Lcm);