Advertisement
veronikaaa86

Concatenate Data C#

Oct 17th, 2017
245
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.45 KB | None | 0 0
  1. using System;
  2.  
  3. namespace ConcatenateData
  4. {
  5.     class Program
  6.     {
  7.         static void Main(string[] args)
  8.         {
  9.             string firstName = Console.ReadLine();
  10.             string lastName = Console.ReadLine();
  11.             int age = int.Parse(Console.ReadLine());
  12.             string town = Console.ReadLine();
  13.  
  14.             Console.WriteLine($"You are {firstName} {lastName}, a {age}-years old person from {town}.");
  15.         }
  16.     }
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement