blob: 0f9840b72d579852dd43648e3e98a94f29e59aae (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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)
|