Solution:
Since no language was specified, this will be written in Python.
n1, n2, n3 = input ("Enter three names: ").split()
print(n3)
print(n2)
print(n1)
Cheers.
All console programs have a way to prompt for input.
For C#, the answer is Console.ReadLine().
For C, the answer is a.o. fgets()
For C++, the answer could be cin >>
... and so on...
Not sure what answer you need here.