Advertisement
IvanBorisovG

MyNameAgeAndTown

Jul 10th, 2017
83
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. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6.  
  7. namespace ConcatenateData
  8. {
  9.     class ConcatenateData
  10.     {
  11.         static void Main(string[] args)
  12.         {
  13.             Console.Write("Add your FristName: ");
  14.             string FirstName = Console.ReadLine();
  15.  
  16.             Console.Write("Add your LastName: ");
  17.             string LastName = Console.ReadLine();
  18.  
  19.             Console.Write("Add your age: ");
  20.             int age = int.Parse(Console.ReadLine());
  21.  
  22.             Console.Write("Add your town of birth: ");
  23.             string town = Console.ReadLine();          
  24.  
  25.             Console.WriteLine($"You are-{FirstName} {LastName}, {age} years old, you are from {town} and you are BALD :)!");
  26.  
  27.  
  28.         }
  29.     }
  30. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement