Advertisement
IvanITD

05.ConcatenateData

Jan 14th, 2024
397
0
Never
1
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.24 KB | Source Code | 0 0
  1. string firstName = 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 {firstName} {lastName}, a {age}-years old person from {town}.");
Tags: C#
Advertisement
Comments
Add Comment
Please, Sign In to add comment
Advertisement