124k views
0 votes
Write a program that asks the user for three names, then prints the names in reverse order. Sample Run: Please enter three names: Zoey Zeb Zena Zena Zeb Zoey

User Gleny
by
5.7k points

1 Answer

6 votes

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.

User Josh Kelly
by
5.7k points