fbinnzhivko

04.ConcatenateData

Mar 7th, 2016
138
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.37 KB | None | 0 0
  1. using System;
  2.  
  3. class Program
  4. {
  5.     static void Main()
  6.     {
  7.         var firstName = Console.ReadLine();
  8.         var secondName = Console.ReadLine();
  9.         var age = double.Parse(Console.ReadLine());
  10.         var town = Console.ReadLine();
  11.  
  12.         Console.WriteLine("You are {0} {1}, a {2}-years old person from {3}.", firstName, secondName, age, town);
  13.  
  14.     }
  15. }
Add Comment
Please, Sign In to add comment