CDE
This commit is contained in:
parent
518da4a923
commit
764da6cbbb
6144 changed files with 83610 additions and 11 deletions
9
Task/Empty-string/R/empty-string.r
Normal file
9
Task/Empty-string/R/empty-string.r
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
s <- ''
|
||||
|
||||
if (s == '') cat('Empty\n')
|
||||
#or
|
||||
if (nchar(s) == 0) cat('Empty\n')
|
||||
|
||||
if (s != '') cat('Not empty\n')
|
||||
#or
|
||||
if (nchar(s) > 0) cat('Not empty\n')
|
||||
Loading…
Add table
Add a link
Reference in a new issue