Advertisement
Guest User

Untitled

a guest
Oct 15th, 2019
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. using System;
  2.  
  3. namespace ConsoleApp3
  4. {
  5. class Program
  6. {
  7. static void Main(string[] args)
  8. {
  9. string s1 = Console.ReadLine();
  10. string s2 = Console.ReadLine();
  11. string s3 = s1.Insert(0, s2.Substring(s2.IndexOf(' ') + 1, s2.LastIndexOf(' ') - s2.IndexOf(' ')));
  12.  
  13. Console.WriteLine(s3.Insert(s3.LastIndexOf(' '), " " + s2.Length.ToString()).Replace(s3.Split()[0], s2.Split()[0]));
  14. Console.WriteLine(s2.Replace(s2.Split()[0], s1.Split()[0]));
  15. Console.ReadKey();
  16. }
  17. }
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement