Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
15
Task/Logical-operations/Efene/logical-operations.efene
Normal file
15
Task/Logical-operations/Efene/logical-operations.efene
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
compare_bool = fn (A, B) {
|
||||
io.format("~p and ~p = ~p~n", [A, B, A and B])
|
||||
io.format("~p or ~p = ~p~n", [A, B, A or B])
|
||||
io.format("not ~p = ~p~n", [A, not A])
|
||||
io.format("~p xor ~p = ~p~n", [A, B, A xor B])
|
||||
io.format("~n")
|
||||
}
|
||||
|
||||
@public
|
||||
run = fn () {
|
||||
compare_bool(true, true)
|
||||
compare_bool(true, false)
|
||||
compare_bool(false, true)
|
||||
compare_bool(false, false)
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue