Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Console.Write("Enter a sentence: ");
- string Re = Console.ReadLine();
- string[] Words = Re.Split(new char[] { ' ' });
- Console.WriteLine();
- Console.WriteLine(Words.Length.ToString() + " words.");
- Console.ReadLine();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement