N"th * Print the ordinal suffix of a given integer * rosettacode.org * Commodore BASIC

Опубликовано: 03 Август 2026
на канале: Low Bytes
31
0

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