Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
15
Task/Boolean-values/True-BASIC/boolean-values.basic
Normal file
15
Task/Boolean-values/True-BASIC/boolean-values.basic
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
!True BASIC maneja correctamente las expresiones booleanas,
|
||||
!Pero no tiene un tipo booleano.
|
||||
|
||||
!La solución: crear constantes False y True y usarlas según sea necesario."
|
||||
LET False = 0
|
||||
LET True = 1
|
||||
PRINT True; ", "; False
|
||||
|
||||
IF True = 0 THEN PRINT "TRUE" ELSE PRINT "FALSE"
|
||||
IF True > False THEN PRINT "TRUE" ELSE PRINT "FALSE"
|
||||
|
||||
!Para el operador NOT, los paréntesis rodean la cláusula completa.
|
||||
IF Not(2 < 1) then PRINT "TRUE" ELSE PRINT "FALSE"
|
||||
|
||||
END
|
||||
Loading…
Add table
Add a link
Reference in a new issue