Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
13
Task/Logical-operations/Relation/logical-operations.relation
Normal file
13
Task/Logical-operations/Relation/logical-operations.relation
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
program logic(x,y)
|
||||
relation a, b, op, result
|
||||
insert x, y, "and", x and y
|
||||
insert x, y, "or", x or y
|
||||
insert x, "", "not", not x
|
||||
insert x, y, "xor", x xor y
|
||||
print
|
||||
end program
|
||||
|
||||
run logic(0,0)
|
||||
run logic(0,1)
|
||||
run logic(1,0)
|
||||
run logic(1,1)
|
||||
Loading…
Add table
Add a link
Reference in a new issue