Advertisement
Kuncavia

DemoReadConsoleText

Aug 14th, 2016
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.51 KB | None | 0 0
  1. using System;
  2.  
  3. class DemoReadConsoleText
  4. {
  5.     static void Main()
  6.     {
  7.         Console.WriteLine("Въведете име:");
  8.         string name = Console.ReadLine();
  9.         Console.WriteLine("Въведете фамилия:");
  10.         string family = Console.ReadLine();
  11.         Console.WriteLine("От кой град сте?:");
  12.         string town = Console.ReadLine();
  13.         Console.WriteLine("Здравейте, казвам се {0} {1} и живея в {2}.", name, family, town);
  14.     }
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement