Advertisement
desislava_topuzakova

06. Concatenate Data

Nov 12th, 2023
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. string name = Console.ReadLine();
  2. string lastName = Console.ReadLine();
  3. int age = int.Parse(Console.ReadLine());
  4. string town = Console.ReadLine();
  5.  
  6. Console.WriteLine($"You are {name} {lastName}, a {age}-years old person from {town}.");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement