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

clc;
clear;
close;
n1=108; n2=288; n3=360;
V=int32([n1 n2 n3]);
Hcf=gcd(V);
mprintf("The HCF of given numbers is %d.",Hcf);