static void Main(string[] args)
{
Console.Write("Enter any Sentence:");
String ex = Console.ReadLine();
String[] words = ex.Split(' ');
Console.WriteLine("\n\nSPLITED WORDS:");
foreach(String s in words){
Console.WriteLine(s);
}
Console.ReadLine();
}
}
Saqlainz -1 Newbie Poster
corsario007 0 Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.