Last active
May 1, 2025 17:38
-
-
Save OngarRagar/77bbcf4e630c6aaddf88ee6b03e38c09 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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