Friday 12 April 2013

C/C++ Program to Print Double-Based Palindromes

  A number is called a Double-based palindrome, if it is palindromic for two different bases. For example consider the decimal number 585. 58510 = 10010010012 (Binary), is palindromic in both bases.Thus 585 is a Double-based palindrome. The C/C++ Program discussed in this post prints Double-based palindromes less than a given limit.

Figure Below Shows a Sample Output

No comments:

Post a Comment