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);