Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Linq;
- using System.Collections.Generic;
- class Program
- {
- static void Main()
- {
- string replace = Console.ReadLine().Trim();
- string[] b = replace.Split('@');
- string replacement = new string('*', b[0].Length) + "@" + b[1];
- string c = Console.ReadLine();
- Console.WriteLine(c.Replace(replace, replacement));
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement