ahmed_so

Concatenate Data

Feb 13th, 2020
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.48 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.         }
  18.  
  19.     }
  20. }
Add Comment
Please, Sign In to add comment