using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace string_split
{
class Program
{
static void Main(string[] args)
{
string s = "there is a cat";
string[] words = s.Split(' ');
foreach (string word in words)
{
Console.WriteLine(word);
}
Console.ReadLine();
}
}
}
o/p:
there
is
a
cat