Advertisement
SonOfABeach

Untitled

Feb 10th, 2015
267
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.21 KB | None | 0 0
  1. Console.Write("Enter a sentence: ");
  2. string Re = Console.ReadLine();
  3. string[] Words = Re.Split(new char[] { ' ' });
  4. Console.WriteLine();
  5. Console.WriteLine(Words.Length.ToString() + " words.");
  6. Console.ReadLine();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement