Logical operations: Difference between revisions

(add bqn)
Line 3,049:
1 1 1 1 0 0 1 0
</pre>
 
=={{header|Phixmonti}}==
<syntaxhighlight lang="Phixmonti">/# Rosetta Code problem: https://rosettacode.org/wiki/Logical_operations
by Galileo, 11/2022 #/
 
include ..\Utilitys.pmt
 
def logiicop var b var a
( a b a b and a b or a not a b xor a b == a b != )
enddef
 
def printSec
len for get print "\t" print endfor drop nl
enddef
 
( "a" "b" "and" "or" "not" "xor" "==" "!=" ) printSec
( 0 1 ) for dup
( 0 1 ) for
logiicop printSec
endfor
endfor</syntaxhighlight>
{{out}}
<pre>a b and or not xor == !=
0 0 0 0 1 0 1 0
0 1 0 1 1 1 0 1
1 0 0 1 0 1 0 1
1 1 1 1 0 0 1 0
 
=== Press any key to exit ===</pre>
 
=={{header|PHP}}==
57

edits