public static void Main()
Console.WriteLine("Enter the string");
string str=Console.ReadLine();
char[] strarray=str.ToCharArray();
foreach(char character in strarray)
Console.WriteLine("Number of words= {0}",space);
Console.WriteLine("Number of words= 0");