Created
January 4, 2024 11:42
-
-
Save tsk-arh/3252d00efe426a5533bdba109e71eee9 to your computer and use it in GitHub Desktop.
ЗАДАНИЕ Работа со строками
This file contains 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 junior1 | |
{ | |
internal class Program | |
{ | |
static void Main(string[] args) | |
{ | |
Console.OutputEncoding = Encoding.Unicode; | |
Console.InputEncoding = Encoding.Unicode; | |
Console.WriteLine("Представьтесь. Как вас зовут?"); | |
string name = Console.ReadLine(); | |
Console.WriteLine("В наше смутное время есть еще очень важный вопрос... Укажите ваш пол, пожалуйста, полностью и прописью, вы у нас ... "); | |
string sex = Console.ReadLine(); | |
Console.WriteLine("Ваша любимая еда это ..."); | |
string favoriteEat = Console.ReadLine(); | |
Console.WriteLine("Что вы предпочитаете из напитков?"); | |
string drinks = Console.ReadLine(); | |
Console.Write("Рады приветствовать вас, " + name +", очень рады что вы " + sex +". В нашей команде уже много таких как вы.\nУ нас как раз есть " + favoriteEat + " и мы рады предложить вам немного.\nА в этой красивой чашечке, уже плещется " + drinks + ", специально для вас, угощайтесь."); | |
Console.ReadKey(); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment