Ordinal Representation @ Dcoder
8 May 2023 1 minute read 0 comments Lochard
Problem: Numbers can be represented in cardinal form or ordinal form. Cardinal Form : 1, 2, 3, 4, 5, 6, etc. Ordinal Form : 1st, 2nd, 3rd, 4th, 5th, 6th, etc. You will be given cardinal form of a digit. You have to print its ordinal form. Input: A si...