Dianov

Data Types and Variables - Lab (07. Concat Names)

Jul 10th, 2021
277
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.34 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 name = Console.ReadLine();
  10.             string family = Console.ReadLine();
  11.             string delimiter = Console.ReadLine();
  12.  
  13.             Console.Write($"{name}{delimiter}{family}");
  14.         }
  15.     }
  16. }
Advertisement
Add Comment
Please, Sign In to add comment