Skip to content

Instantly share code, notes, and snippets.

@OngarRagar
Last active May 1, 2025 17:38
Show Gist options
  • Save OngarRagar/77bbcf4e630c6aaddf88ee6b03e38c09 to your computer and use it in GitHub Desktop.
Save OngarRagar/77bbcf4e630c6aaddf88ee6b03e38c09 to your computer and use it in GitHub Desktop.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace konsol
{
internal class Program
{
static void Main(string[] args)
{
string name;
string Surname;
string patronymic;
string zodiacSign;
string work;
int age;
int growth;
int weight;
Console.WriteLine("Здравствуйте, ответьте не следующие вопросы:");
Console.Write("Ваше имя: ");
name = Console.ReadLine();
Console.Write("Ваша фамилия: ");
Surname = Console.ReadLine();
Console.Write("Ваше отчество: ");
patronymic = Console.ReadLine();
Console.Write("Ваш знак зодиака: ");
zodiacSign = Console.ReadLine();
Console.Write("Ваша работа: ");
work = Console.ReadLine();
Console.Write("Ваш возраст: ");
age = Convert.ToInt32(Console.ReadLine());
Console.Write("Ваш рост: ");
growth = Convert.ToInt32(Console.ReadLine());
Console.Write("Ваш вес: ");
weight = Convert.ToInt32(Console.ReadLine());
Console.WriteLine($"И так, Вас зовут: {Surname} {name} {patronymic}. Вам: {age}, " +
$" ваш рост: {growth}, и ваш вес: {weight}. Так же ваш знак зодиака {zodiacSign}, и работаете вы на: {work}." +
$" Исходя из этих данных, вы нам не подходите.");
Console.ReadKey();
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment