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/Yabasic/empty-string.basic
Normal file
15
Task/Empty-string/Yabasic/empty-string.basic
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
sub IsEmpty (s$)
|
||||
if len(s$) = 0 then
|
||||
print "String is empty"
|
||||
else
|
||||
print "String is not empty"
|
||||
endif
|
||||
if s$ = "" print "yes, the string is empty"
|
||||
if s$ <> "" print "no, the string is not empty"
|
||||
end sub
|
||||
|
||||
t$ = ""
|
||||
IsEmpty (t$)
|
||||
u$ = "not empty"
|
||||
IsEmpty (u$)
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue