C# Console Girilen metinin içinde kac kelime olduğunu söyleyen program


C# Console Girilen metinin içinde kac kelime olduğunu söyleyen program
 {
 
static void Main(string[] args)
  {
    string sentence;
    Console.Write("Enter String  : ");
    sentence = Console.ReadLine();
    string[] words = sentence.Split(' ');
    Console.WriteLine("Count of words :"+words.Length);
    Console.ReadKey();
  }
 
}