summaryrefslogtreecommitdiff
path: root/1553/CH2/EX2.14/2Ex14.sce
diff options
context:
space:
mode:
Diffstat (limited to '1553/CH2/EX2.14/2Ex14.sce')
-rw-r--r--1553/CH2/EX2.14/2Ex14.sce9
1 files changed, 9 insertions, 0 deletions
diff --git a/1553/CH2/EX2.14/2Ex14.sce b/1553/CH2/EX2.14/2Ex14.sce
new file mode 100644
index 000000000..ce46810cf
--- /dev/null
+++ b/1553/CH2/EX2.14/2Ex14.sce
@@ -0,0 +1,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);