Advertisement
Spocoman

07. Concat Names

Jan 16th, 2022
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.43 KB | None | 0 0
  1. using System;
  2.  
  3. namespace ConcatNames
  4. {
  5.     class Program
  6.     {
  7.         static void Main(string[] args)
  8.         {
  9.             string firstName = Console.ReadLine();
  10.             string secondName = Console.ReadLine();
  11.             string delimiter = Console.ReadLine();
  12.  
  13.             Console.WriteLine($"{firstName}{delimiter}{secondName}");
  14.          // Console.WriteLine(firstName + delimiter + secondName);
  15.         }
  16.     }
  17. }
  18.  
  19.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement