Issue: ★ ★ ★ ☆
Oh, depart it to the propeller heads to plot a intelligent and enjoyable identify for one thing the remainder of us by no means take note of. This time it’s a cyclops quantity, which is any decimal integer worth with an odd variety of digits and an enormous fats zero within the center — like a cyclops’ eye.
The digits in a cyclops quantity needn’t mirror one another; it isn’t a palindrome quantity (which apparently is one other factor in math). No, it’s simply an integer worth with an odd variety of digits in order that it has a middle digit. That heart digit — and solely that digit — should be zero.
Your process for this month’s Train is to put in writing code that outputs the primary 100 cyclops numbers. Begin at zero, regardless that you want at the very least a three-digit worth to have the primary cyclops quantity. When the code matches the cyclops quantity sample, output its worth.
Determine 1 exhibits the output from my resolution, the place I crafted a elaborate desk to output the outcomes on a single display. (I cowl the desk’s logic in an upcoming Lesson.) You don’t must output the values in such a desk, only a lengthy record is sufficient.
Please do that Train on your individual earlier than you peek at my resolution.