using System;
class Program
{
static void Main()
{
string s = "I love my india";
//split string on space and storing in words
string[] words = s.Split(' ');
foreach (string word in words)
{
Console.WriteLine(word);
}
}
}
output
I
love
my
india
Loading

Join the conversation! Your thoughts help the community grow.