Design an algorithm and flow chart to check whether a number given by the user is palindrome or not
Answers
Answered by
14
Explanation:
- 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.
Answered by
1
Answer:
Answer
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.
Similar questions
Chemistry,
1 month ago
Music,
1 month ago
Computer Science,
2 months ago
Social Sciences,
10 months ago
English,
10 months ago