generated from admin/template
yaghouldeadinside
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user