Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
9
Task/String-comparison/Run-BASIC/string-comparison.basic
Normal file
9
Task/String-comparison/Run-BASIC/string-comparison.basic
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
a$ = "dog"
|
||||
b$ = "cat"
|
||||
if a$ = b$ then print "the strings are equal" ' test for equalitY
|
||||
if a$ <> b$ then print "the strings are not equal" ' test for inequalitY
|
||||
if a$ > b$ then print a$;" is lexicallY higher than ";b$ ' test for lexicallY higher
|
||||
if a$ < b$ then print a$;" is lexicallY lower than ";b$ ' test for lexicallY lower
|
||||
if a$ <= b$ then print a$;" is not lexicallY higher than ";b$
|
||||
if a$ >= b$ then print a$;" is not lexicallY lower than ";b$
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue