skipter

Concatenate Data - CSharp Basics

May 21st, 2017
209
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.55 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. namespace ConsoleApp4
  7. {
  8.     class Program
  9.     {
  10.         static void Main(string[] args)
  11.         {
  12.             var firstName = Console.ReadLine();
  13.             var secondName = Console.ReadLine();
  14.             var age = int.Parse(Console.ReadLine());
  15.             var town = Console.ReadLine();
  16.  
  17.             Console.WriteLine("You are {0} {1}, a {2}-years old person from {3}", firstName, secondName, age, town);
  18.         }
  19.     }
  20. }
Advertisement
Add Comment
Please, Sign In to add comment