Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace _16_Tricky_Strings
- {
- class Program
- {
- static void Main(string[] args)
- {
- char delimiter = char.Parse(Console.ReadLine());
- int number = int.Parse(Console.ReadLine());
- string result = string.Empty;
- for (int i = 0; i < number; i++)
- {
- if (i == number - 1)
- {
- string parseThis = Console.ReadLine();
- result += parseThis;
- }
- else
- {
- string parseThis = Console.ReadLine();
- result += parseThis;
- result += delimiter;
- }
- }
- Console.WriteLine(result);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement