Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace ConsoleApp3
- {
- class Program
- {
- static void Main(string[] args)
- {
- string s1 = Console.ReadLine();
- string s2 = Console.ReadLine();
- string s3 = s1.Insert(0, s2.Substring(s2.IndexOf(' ') + 1, s2.LastIndexOf(' ') - s2.IndexOf(' ')));
- Console.WriteLine(s3.Insert(s3.LastIndexOf(' '), " " + s2.Length.ToString()).Replace(s3.Split()[0], s2.Split()[0]));
- Console.WriteLine(s2.Replace(s2.Split()[0], s1.Split()[0]));
- Console.ReadKey();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement