Advertisement
YavorGrancharov

Sentence_Split(text_process)

Aug 2nd, 2017
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.40 KB | None | 0 0
  1. using System;
  2.  
  3. namespace Sentence_Split
  4. {
  5.     class Program
  6.     {
  7.         static void Main(string[] args)
  8.         {
  9.             string input = Console.ReadLine();
  10.             string delimiter = Console.ReadLine();
  11.  
  12.             string[] parts = input.Split(new string[] { delimiter }, StringSplitOptions.None);
  13.  
  14.             Console.WriteLine($"[{string.Join(", ", parts)}]");
  15.         }
  16.     }
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement