5/23/2023 0 Comments String palindrome program in cobol![]() We will compare original string with string after reverse. This Program will take two String as an input. Because it become different after reverse. It will be always “PeeP”īut suppose “right” is a string and when we reverse it the it became “thgir”. Now before moving on writing the program first you should know What is String palindrome?Ī String is called as palindrome, when it not changes either we write it from starting point or last end of the String.įor example : “PeeP” is a palindrome string because we can write it either of any starting point or end point. ![]() This process stops when it reached at mid of the string or if any character exist in string which not satisfy the given conditions means if they not matched.To check a given string is palindrome or not we just matching the first character with last and second with second last and so on.The Complete logic behind to check whether a given string is palindrome or not: In this tutorial, you will learn writing program in the C to check whether a given string is palindrome or not.
0 Comments
Leave a Reply. |