+ 1

A cute programming challenge. Is the base 10 value a palindrome in binary?

The problem is to create a program (in the language of your choice) that asks the user for a base 10 input value. The program must then determine if the value entered is a palindrome (the same read forwards and backwards) in binary. For the sake of leading zeros, lets start by assuming we are searching for 8 bit binary palindromes. For those who find this a bit too easy, create a program that finds and prints all binary palindromes up to the base 10 value of 1,000,000 on a resolution interval of 4 bits.

22nd May 2017, 7:18 PM
John Rodman
John Rodman - avatar
1 Resposta
0
No idea if anyone is interested or not but had the idea and thought someone else might appreciate the exercise. Enjoy!
22nd May 2017, 7:19 PM
John Rodman
John Rodman - avatar