1 2 3 4 5 6 7 8 9 10 11 12
//chapter 2 Ex 6 clc; clear; close; n1=72; n2=108; n3=2100; V=int32([n1 n2 n3]); Lcm=lcm(V); mprintf("The LCM of given numbers is %d.",Lcm);