Help in CSEN 102 Pseudo code question please?

Write a pseudo code algorithm that given a positive integer number, checks and prints whether the

number is a palindromic number or not.

The algorithm should display the result in the following format, for example for a number 1456541, the

output should be:

The number 1456541 is a palindromic number.

For a number 134, the output should be:

The number 134 is not a palindromic number.

1 Answer

Relevance
  • ?
    Lv 7
    8 years ago
    Favorite Answer

    * START

    * Convert integer to string

    * From end to beginning, copy each character in the string to a new string

    * Compare string to reversed string:

    ** If the two are identical, number is palindromic, else the number is not palindromic

    * END

Still have questions? Get your answers by asking now.