Advertisement
optybg

Untitled

Apr 4th, 2017
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.43 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4.  
  5. namespace _04SentenceSplit
  6. {
  7.     public class SentenceSplit
  8.     {
  9.         public static void Main(string[] args)
  10.         {
  11.             var inputString = Console.ReadLine();
  12.  
  13.             var delimiter = Console.ReadLine();
  14.  
  15.             var output = inputString.Replace(delimiter, ", ");
  16.  
  17.             Console.WriteLine("["+output+"]");
  18.         }
  19.     }
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement