I would like to program the following in Delphi, but please only write algorithms as I would like to learn the programming language myself.
The following could held in an array of characters called 'names':
'Michael James Jones'
I would like it to be output in the format:
There doesn't necessarily have to be a middle name but there will always be a forename and a surname.