Advertisement
Guest User

Untitled

a guest
Jun 6th, 2016
283
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.39 KB | None | 0 0
  1. using System;
  2. using System.Linq;
  3. using System.Collections.Generic;
  4.  
  5. class Program
  6. {
  7.     static void Main()
  8.     {
  9.         string replace = Console.ReadLine().Trim();
  10.         string[] b = replace.Split('@');
  11.         string replacement = new string('*', b[0].Length) + "@" + b[1];
  12.         string c = Console.ReadLine();
  13.         Console.WriteLine(c.Replace(replace, replacement));
  14.     }
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement