Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
13
Task/Logical-operations/BBC-BASIC/logical-operations.basic
Normal file
13
Task/Logical-operations/BBC-BASIC/logical-operations.basic
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
PROClogic(FALSE, FALSE)
|
||||
PROClogic(FALSE, TRUE)
|
||||
PROClogic(TRUE, FALSE)
|
||||
PROClogic(TRUE, TRUE)
|
||||
END
|
||||
|
||||
DEF PROClogic(a%, b%)
|
||||
LOCAL @% : @% = 2 : REM Column width
|
||||
PRINT a% " AND " b% " = " a% AND b% TAB(20);
|
||||
PRINT a% " OR " b% " = " a% OR b% TAB(40);
|
||||
PRINT a% " EOR " b% " = " a% EOR b% TAB(60);
|
||||
PRINT " NOT " a% " = " NOT a%
|
||||
ENDPROC
|
||||
Loading…
Add table
Add a link
Reference in a new issue