Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
15
Task/Empty-string/BASIC256/empty-string.basic
Normal file
15
Task/Empty-string/BASIC256/empty-string.basic
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
subroutine IsEmpty (s$)
|
||||
if length(s$) = 0 then
|
||||
print "String is empty"
|
||||
else
|
||||
print "String is not empty"
|
||||
end if
|
||||
if s$ = "" then print "yes, the string is empty"
|
||||
if s$ <> "" then print "no, the string is not empty"
|
||||
end subroutine
|
||||
|
||||
t$ = ""
|
||||
call IsEmpty (t$)
|
||||
u$ = "not empty"
|
||||
call IsEmpty (u$)
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue