summaryrefslogtreecommitdiff
path: root/3808/CH1/EX1.9/Ex1_9.sce
diff options
context:
space:
mode:
Diffstat (limited to '3808/CH1/EX1.9/Ex1_9.sce')
-rw-r--r--3808/CH1/EX1.9/Ex1_9.sce15
1 files changed, 15 insertions, 0 deletions
diff --git a/3808/CH1/EX1.9/Ex1_9.sce b/3808/CH1/EX1.9/Ex1_9.sce
new file mode 100644
index 000000000..0f9840b72
--- /dev/null
+++ b/3808/CH1/EX1.9/Ex1_9.sce
@@ -0,0 +1,15 @@
+//Chapter 01: The Foundations: Logic and Proofs
+
+clc;
+clear;
+
+function p(x) //function definition to check whether the given statements are true.
+if(x>3) then
+ mprintf("\np(%d) which is the statement %d > 3, is true",x,x)
+else
+ mprintf("\np(%d) which is the statement %d > 3, is false",x,x)
+end
+endfunction
+
+p(4)
+p(2)