using System; class Program { static void Main() { string str = "Hi I am Neeraj"; string[] words = str.Split(' '); foreach (string word in words) { Console.WriteLine(word); } } } Output:- Hi I am Neeraj
No comments: