An example in CBM BASIC V2 for a task on http://rosettacode.org called "N"th":
Write a function/method/subroutine that when given an integer greater than or equal to zero returns a string of the number followed by an apostrophe then the ordinal suffix.
Example output:
1'st 2'nd 3'rd 11'th 111'th 1001'st 1012'th
#C64 #BASIC