yaghouldeadinside

This commit is contained in:
328p
2026-09-23 11:36:42 +03:00
parent 7c87ed82dc
commit 03cc74fdfa
3 changed files with 91 additions and 0 deletions
+22
View File
@@ -0,0 +1,22 @@
using System;
public class Test
{
public static void Main()
{
int choice;
do
{
Console.Write("Готовы начать бой? (1 - Да, 0 - Нет): ");
choice = int.Parse(Console.ReadLine());
if (choice == 0)
{
Console.WriteLine("Вы отменили бой!");
return;
}
if (choice != 1)
Console.WriteLine("Некорректная команда! Попробуйте снова.");
} while (choice != 1);
}
}