summaryrefslogtreecommitdiff
path: root/1553/CH2/EX2.19/2Ex19.sce
blob: 233a146866a86525adcf4134452a7d56a3422604 (plain)
1
2
3
4
5
6
7
8
//chapter 2 Ex 19
clc;
clear;
close;
n1=20; n2=25; n3=35; n4=40;
n=lcm(int32([n1,n2,n3,n4]));
rem=6;
mprintf("The least such number is %d",n-rem);