Skip to content

Instantly share code, notes, and snippets.

@VladimirYus
Created November 19, 2025 12:30
Show Gist options
  • Select an option

  • Save VladimirYus/9af3d46518a43d6c3cdcdfa8e62e1dec to your computer and use it in GitHub Desktop.

Select an option

Save VladimirYus/9af3d46518a43d6c3cdcdfa8e62e1dec to your computer and use it in GitHub Desktop.
WorkingWithStrings
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace WorkingWithStrings
{
internal class Program
{
static void Main(string[] args)
{
string name;
int age;
string zodiac;
string job;
Console.Write("Как вас зовут? ");
name = Console.ReadLine();
Console.Write("Сколько вам лет? ");
age = Convert.ToInt32(Console.ReadLine());
Console.Write("Какой ваш знак зодиака? ");
zodiac = Console.ReadLine();
Console.Write("Где вы работаете? ");
job = Console.ReadLine();
Console.WriteLine($"Вас зовут {name}, вам {age}, вы {zodiac} и работаете {job}.");
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment