Created
November 19, 2025 12:30
-
-
Save VladimirYus/9af3d46518a43d6c3cdcdfa8e62e1dec to your computer and use it in GitHub Desktop.
WorkingWithStrings
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 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