Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 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