summaryrefslogtreecommitdiff
path: root/1553/CH2/EX2.14/2Ex14.sce
blob: ce46810cffe7870ab89d27bb05e9db0843426db1 (plain)
1
2
3
4
5
6
7
8
9
//chapter 2 Ex 14

clc;
clear;
close;
n1=62; n2=132; n3=237;
V=int32([n2-n1 n3-n2 n3-n1]); //since it leaves same reminder
Hcf=gcd(V);
mprintf("The largest such number is %d.",Hcf);