Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace _16.TrickyStrings
- {
- public class TrickyStrings
- {
- public static void Main()
- {
- string delimiter = Console.ReadLine();
- int n = int.Parse(Console.ReadLine());
- string result = "";
- for (int i = 1; i <= n; i++)
- {
- string word = Console.ReadLine();
- result += word + delimiter;
- }
- string removeLastChar = result.Remove(result.Length - delimiter.Length, delimiter.Length);
- Console.WriteLine($"{removeLastChar}");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement