Advertisement
Vlad_Savitskiy

Personal information

Apr 1st, 2020
151
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.80 KB | None | 0 0
  1. using System;
  2.  
  3. namespace CSLightFirst
  4. {
  5.     class Program
  6.     {
  7.         static void Main()
  8.         {
  9.             string name;
  10.             string birthDate;
  11.             string currentCity;
  12.  
  13.             Console.Write("Ваше имя и фамилия: ");
  14.             name = Console.ReadLine();
  15.             Console.Write("Когда вы родились: ");
  16.             birthDate = Console.ReadLine();
  17.             Console.Write("В каком городе Вы живете: ");
  18.             currentCity = Console.ReadLine();
  19.  
  20.             Console.WriteLine($"Итак, давайте проверим Ваши данные\n" +
  21.                               $"Вас зовут {name}, Вы родились {birthDate} и проживаете в городе {currentCity}");
  22.         }
  23.     }
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement