write 121
palindrome or not
flowchart
Answers
Answered by
0
Answer:
121 is a palindrome number.
Explanation:
Algorithm for palindrome -
> Input a String.
> Initialize Length to 0 , Flag to 0.
> While String[Length] is not equal to NULL. Increment Len gth.
> Initialize I to 0 , J to Length-1. While I is less than (Length/2)+1. If String[I] equal to String[J] Flag=0. else. Flag=1.
> If Flag equal to zero. Print it is a Palindrome. else. Print it is Not a Palindrome.
> Stop.
Flowchart for palindrome is -
Attachments:
Similar questions