DEV Community

Ivan Ivanov
Ivan Ivanov

Posted on

6. Concatenate Data

using System;

namespace ConcatenateData
{
internal class Program
{
    static void Main(string[] args)
    {
        string firstName = Console.ReadLine();
        string lastName = Console.ReadLine();
        int age = int.Parse(Console.ReadLine());
        string town = Console.ReadLine();

        Console.WriteLine($"You are {firstName} {lastName}, a {age}-years old person from {town}.");
    }
}
}
Enter fullscreen mode Exit fullscreen mode

Top comments (0)