CARVIEW |
Select Language
HTTP/2 200
date: Sat, 11 Oct 2025 20:10:15 GMT
content-type: text/html; charset=UTF-8
server: cloudflare
x-frame-options: DENY
x-content-type-options: nosniff
x-xss-protection: 1;mode=block
vary: accept-encoding
cf-cache-status: DYNAMIC
content-encoding: gzip
set-cookie: _csrf-frontend=4d54f556093eb69925098e6b2eff71ab5bce1acca6e707f744071f35270da268a%3A2%3A%7Bi%3A0%3Bs%3A14%3A%22_csrf-frontend%22%3Bi%3A1%3Bs%3A32%3A%22GerHg4p31ieN7CoLEiCFd2sV8t6W6Ize%22%3B%7D; HttpOnly; Path=/
cf-ray: 98d0fff3194ad3d4-BLR
Is_palindrome - Pastebin.com
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ##
- function is_palindrome(text: string): boolean;
- begin
- var s := '';
- text := text.ToLower;
- for var i := 1 to Length(text) do
- if (text[i] <> ' ') and (text[i].isletter) then s := s + text[i];
- if (s[1:] = s[::-1]) then Result := true else Result := false;
- end;
- //
- var text := ReadString;
- Print(is_palindrome(text));
- ////// другой способ через replace ///////
- function is_palindrome(text: string): boolean;
- begin
- text := text.ToLower;
- text := text.Replace(',','');
- text := text.replace ('.','');
- text := text.replace ('!','');
- text := text.replace ('?','');
- text := text.replace ('-','');
- text := text.replace (' ','');
- if (text = text[::-1]) then result := True
- else result := False
- end;
- println(is_palindrome('А роза упала на лапу Азора.'));
- println(is_palindrome('Gabler Ruby - burrel bag!'));
- print(is_palindrome('BEEGEEK'));
Advertisement
Add Comment
Please, Sign In to add comment
-
⭐✅ Swapzone Glitch ✅ Working ⭐⭐ E
JavaScript | 1 sec ago | 0.25 KB
-
💵 Make 3000$ in 20 minutes 💵
JavaScript | 2 sec ago | 0.24 KB
-
📌 Swapzone +37% glitch
JavaScript | 13 sec ago | 0.24 KB
-
⭐✅ Marketplace Glitch ✅ Working ✅ NEVER SEEN...
JavaScript | 18 sec ago | 0.25 KB
-
✅ Make $2500 in 20 minutes⭐⭐⭐ X
JavaScript | 19 sec ago | 0.25 KB
-
📝 Exchange profit method
JavaScript | 23 sec ago | 0.24 KB
-
⭐✅ Exploit 2500$ in 15 Minutes⭐⭐⭐ P
JavaScript | 27 sec ago | 0.25 KB
-
📌 Swapzone +37% glitch ⭐ O
JavaScript | 28 sec ago | 0.25 KB
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand