Homework 3: Reverse Divisible Numbers

This month we decided to choose an easier problem, but there is one new requirement: you MUST solve this problem in a language you have NEVER used before.

I’ll repeat this: Solve this problem in a language completely new to you. Maybe you’ve read about it, but you should have close to zero programming experience in it. This is to encourage you to try something new and discuss the results.

Bring your solutions to our October meeting.

The problem is from an old Ruby Quiz. I will provide a link later (the problem page also has the solution on it). For now, I will give you the problem here directly.

Write a program that prints all numbers less than 1 million that can be evenly divided by the reverse of the number.

For example, the number “9801” is evenly divisible by its reverse, “1089”. Print out all such numbers that are less than 1 million.

There are two restrictions:

Feel free to discuss the problem or any other topics you are interested in on our mailing list (accessible via our Meetup Group).

Provided Solutions

Bill R.

Bob C.

Frank W.