Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Linq;
- using System.Collections.Generic;
- namespace TextFilter
- {
- class Program
- {
- static void Main()
- {
- string[] filrered = Console.ReadLine().Split(", ");
- string text = Console.ReadLine();
- for (int i = 0; i < filrered.Length; i++)
- {
- text = text.Replace(filrered[i], new string('*', filrered[i].Length));
- }
- Console.WriteLine(text);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement