You are given an integer N, followed by N lines of input (1 < = N < = 100). Each line of input contains one or several words separated with single spaces. Each word is a sequence of letters of English alphabet containing between 1 and 10 characters, inclusive. The total number of words in the input is between 1 and 100, inclusive
Your task is to reverse the order of words in each line of input, while preserving the words themselves. The lines of your output should not have any trailing or leading spaces.
+5
Answers (1)
Know the Answer?
Not Sure About the Answer?
Get an answer to your question ✅ “You are given an integer N, followed by N lines of input (1 < = N < = 100). Each line of input contains one or several words separated with ...” in 📙 Computers & Technology if there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Home » Computers & Technology » You are given an integer N, followed by N lines of input (1 < = N < = 100). Each line of input contains one or several words separated with single spaces.