View Problem
Replacing a conditional with many branches with a switch/case statement
Many languages support more compact forms of branching than just if ... then ... else such as switch or case or match. Use such a form to add an appropriate placing suffix to the numbers 1..40, e.g. 1st, 2nd, 3rd, 4th, ..., 11th, 12th, ... 39th, 40th
Submit a new solution for fsharp, erlang, or clojure
There are 13 other solutions in additional languages (cpp, csharp, fantom, groovy ...)
Submit a new solution for fsharp, erlang, or clojure
There are 13 other solutions in additional languages (cpp, csharp, fantom, groovy ...)


