Lucky and even lucky numbers: Difference between revisions

m
changed number to numbers (plural).
m (added a Wiki link.)
m (changed number to numbers (plural).)
Line 45:
<br>The program should support the arguments:
<pre>
what is displayed (on a single line)
argument(s) (optional verbage is encouraged)
╔═══════════════════╦════════════════════════════════════════════════════╗
╔═══════════════════╦═══════════════════════════════════════════════════╗
║ j ║ Jth lucky number
║ j , lucky ║ Jth lucky number
║ j , evenLucky ║ Jth even lucky number
║ ║
║ j k ║ Jth through Kth (inclusive) lucky numbernumbers
║ j k lucky ║ Jth through Kth (inclusive) lucky numbernumbers
║ j k evenLucky ║ Jth through Kth (inclusive) even lucky numbernumbers
║ ║
║ j -k ║ all lucky numbers in the range j ──► |k|
║ j -k lucky ║ all lucky numbers in the range j ──► |k|
║ j -k evenLucky ║ all even lucky numbers in the range j ──► |k|
╚═══════════════════╩════════════════════════════════════════════════════╝
╚═══════════════════╩═══════════════════════════════════════════════════╝
where |k| is the absolute value of k
</pre>
Specifically: