Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
11
Task/Palindrome-detection/BaCon/palindrome-detection.bacon
Normal file
11
Task/Palindrome-detection/BaCon/palindrome-detection.bacon
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
OPTION COMPARE TRUE
|
||||
|
||||
INPUT "Enter your line... ", word$
|
||||
|
||||
IF word$ = REVERSE$(word$) THEN
|
||||
PRINT "This is an exact palindrome!"
|
||||
ELIF EXTRACT$(word$, "[[:punct:]]|[[:blank:]]", TRUE) = REVERSE$(EXTRACT$(word$, "[[:punct:]]|[[:blank:]]", TRUE)) THEN
|
||||
PRINT "This is an inexact palindrome!"
|
||||
ELSE
|
||||
PRINT "Not a palindrome."
|
||||
ENDIF
|
||||
Loading…
Add table
Add a link
Reference in a new issue