nvnnaidenov

ConcatenateData - Chapter 2.0

Feb 9th, 2022
459
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.40 KB | None | 0 0
  1. //Task 004, Chapter 2.0
  2. using System;
  3.  
  4. public class ConcatenateData
  5. {
  6.     static void Main()
  7.     {
  8.         string firstName = Console.ReadLine();
  9.         string lastName = Console.ReadLine();
  10.         int age = int.Parse(Console.ReadLine());
  11.         string town = Console.ReadLine();
  12.  
  13.         Console.WriteLine($"You are {firstName} {lastName}, a {age}-years old person from {town}.");
  14.     }
  15. }
Advertisement
Add Comment
Please, Sign In to add comment