Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- string input = "Johnny goes to the store";
- string[ ] words = input.Split(' ');
- Array.Reverse(words);
- foreach(string word in words){
- Console.Write(word+" ");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement