Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 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