Created
September 18, 2023 20:01
-
-
Save EntaltsevSN/a9c853ddba6e3afcc223f16f199c5bbd to your computer and use it in GitHub Desktop.
You got dam right! Or not...
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
int magicNumber = 4; | |
Console.WriteLine("Угадай число"); | |
Console.WriteLine(); | |
Console.WriteLine("Загадано число от 1 до 5. Попробуйте его отгадать!"); | |
Console.WriteLine(); | |
Console.Write("Введите ваше число: "); | |
int input = Convert.ToInt32(Console.ReadLine()); | |
Console.WriteLine(); | |
if (input == magicNumber) | |
{ | |
Console.WriteLine("Да! Это число " + magicNumber + "!"); | |
} | |
else { | |
Console.WriteLine("Нет! Это не " + input + "!"); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment