Cardinal And Ordinal Numbers
June 15, 2021
Cardinal numbers are those used for counting; spelled in letters, they are one, two, three, four, and so on.
Ordinal numbers are those used for ranking: spelled in letters, they are first, second, third, fourth, and so on.
Your task is to write a program that takes a number and returns the spelled-out cardinal and ordinal forms of that number. When you are finished, you are welcome to read or run a suggested solution, or to post your own solution or discuss the exercise in the comments below.
Here is a Common Lisp solution: https://ideone.com/EGYUsp
1- trivial as always,
2- it just works, because ANSI Common Lisp.