English, asked by lalitaistwal70451, 2 months ago

Design an algorithm and flow chart to check whether a number given by the user is palindrome or not

Answers

Answered by MissVirius
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 deenashree91552
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