Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Linq;
- using System.Collections.Generic;
- namespace Substring
- {
- class Program
- {
- static void Main()
- {
- string sub = Console.ReadLine();
- string str = Console.ReadLine();
- while (str.Contains(sub))
- {
- str = str.Replace(sub, "");
- }
- Console.WriteLine(str);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement