Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
12
Task/Empty-string/MSX-Basic/empty-string.basic
Normal file
12
Task/Empty-string/MSX-Basic/empty-string.basic
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
100 CLS : REM 100 HOME for Applesoft BASIC
|
||||
110 LET S$ = ""
|
||||
120 GOSUB 160
|
||||
130 LET S$ = "not empty"
|
||||
140 GOSUB 160
|
||||
150 END
|
||||
160 REM isEmpty
|
||||
170 IF LEN(S$) = 0 THEN PRINT "String is empty"
|
||||
180 IF LEN(S$) <> 0 THEN PRINT "String is not empty"
|
||||
190 IF S$ = "" THEN PRINT "yes, the string is empty"
|
||||
200 IF S$ <> "" THEN PRINT "no, the string is not empty"
|
||||
210 RETURN
|
||||
Loading…
Add table
Add a link
Reference in a new issue