summaryrefslogtreecommitdiff
path: root/662/CH7/EX7.4/ex7_4.sci
diff options
context:
space:
mode:
Diffstat (limited to '662/CH7/EX7.4/ex7_4.sci')
-rwxr-xr-x662/CH7/EX7.4/ex7_4.sci9
1 files changed, 9 insertions, 0 deletions
diff --git a/662/CH7/EX7.4/ex7_4.sci b/662/CH7/EX7.4/ex7_4.sci
new file mode 100755
index 000000000..4a5ecb022
--- /dev/null
+++ b/662/CH7/EX7.4/ex7_4.sci
@@ -0,0 +1,9 @@
+ //Example 7.4
+//determine the larger of two quantities
+
+function[] = maximum(x, y)
+ if (x >=y) then z=x; else z=y;
+ end
+ printf("\n\nMaximum value %d", z);
+ return;
+endfunction \ No newline at end of file