Yahoo Answers is shutting down on May 4th, 2021 (Eastern Time) and beginning April 20th, 2021 (Eastern Time) the Yahoo Answers website will be in read-only mode. There will be no changes to other Yahoo properties or services, or your Yahoo account. You can find more information about the Yahoo Answers shutdown and how to download your data on this help page.

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
  • Zarn
    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.