Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- public class Program
- {
- public static void Main(string[] args)
- {
- string stringRead = "";
- char characterSplit = ' ';
- Console.WriteLine("Input a string : ");
- stringRead = Console.ReadLine();
- string[] stringsSplit = stringRead.Split(characterSplit);
- foreach(string element in stringsSplit)
- Console.WriteLine(element);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement