Hevin Coskun 2024-12-17 11:51:55 +01:00
parent f1305e13cf
commit 529eb1448f
5 changed files with 6 additions and 1 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -4,7 +4,7 @@ proc isPalindrome(s: string): bool =
return s == s.reversed()
let testString = "hallo" # Beispiel: Palindrom
let testString = "hallo" # Beispiel: Nicht Palindrom
if isPalindrome(testString):
echo testString, " ist ein Palindrom."
else:
@ -14,6 +14,11 @@ else:
# alternativ
proc reverseString(str: string): string =
var reversedStr = ""

Binary file not shown.