summaryrefslogtreecommitdiff
path: root/1553/CH2/EX2.22/2Ex22.sce
diff options
context:
space:
mode:
Diffstat (limited to '1553/CH2/EX2.22/2Ex22.sce')
-rw-r--r--1553/CH2/EX2.22/2Ex22.sce11
1 files changed, 11 insertions, 0 deletions
diff --git a/1553/CH2/EX2.22/2Ex22.sce b/1553/CH2/EX2.22/2Ex22.sce
new file mode 100644
index 000000000..48406b226
--- /dev/null
+++ b/1553/CH2/EX2.22/2Ex22.sce
@@ -0,0 +1,11 @@
+
+//chapter 9 Ex 13
+
+clc;
+clear;
+close;
+
+a=17/18; b=31/36; c=43/45; d=59/60;
+v=[a b c d];
+v=gsort(v,'lc','i');
+mprintf("%.3f > %.3f >%.3f >%.3f ",v(4),v(3),v(2),v(1));