Cody

Solution 230440

Submitted on 14 Apr 2013 by andrea84
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

Test Suite

Test Status Code Input and Output
1   Pass
%% assert(isequal(ord(1),'1st'))

a = 1st

2   Pass
%% assert(isequal(ord(2),'2nd'))

a = 2nd

3   Pass
%% assert(isequal(ord(3),'3rd'))

a = 3rd

4   Pass
%% assert(isequal(ord(4),'4th'))

a = 4th

5   Pass
%% assert(isequal(ord(5),'5th'))

a = 5th

6   Pass
%% assert(isequal(ord(10),'10th'))

a = 10th

7   Pass
%% assert(isequal(ord(11),'11th'))

a = 11th

8   Pass
%% assert(isequal(ord(12),'12th'))

a = 12th

9   Pass
%% assert(isequal(ord(13),'13th'))

a = 13th

10   Pass
%% assert(isequal(ord(14),'14th'))

a = 14th

11   Pass
%% assert(isequal(ord(15),'15th'))

a = 15th

12   Pass
%% assert(isequal(ord(82),'82nd'))

a = 82nd

13   Pass
%% assert(isequal(ord(126),'126th'))

a = 126th

14   Pass
%% assert(isequal(ord(911),'911th'))

a = 911th

15   Pass
%% assert(isequal(ord(2012),'2012th'))

a = 2012th

16   Pass
%% assert(isequal(ord(4077),'4077th'))

a = 4077th

17   Pass
%% assert(isequal(ord(0),'0th'))

a = 0th

18   Pass
%% assert(isequal(ord(-101),'-101st'))

a = -101st