Advertisement
Guest User

Untitled

a guest
Feb 25th, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.19 KB | None | 0 0
  1. string input = "Johnny goes to the store";
  2. string[ ] words = input.Split(' ');
  3.  
  4. Array.Reverse(words);
  5.  
  6. foreach(string word in words){
  7. Console.Write(word+" ");
  8. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement