Quantcast
Channel: DaniWeb Solved Topics
Viewing all articles
Browse latest Browse all 576

Reverse Word Order

$
0
0

Write a function that takes as argument a string containing multiple words and returns a string containing the same words in reverse order.
Eg., input = 'India is a democracy'; output = 'democracy a is India'


Viewing all articles
Browse latest Browse all 576