This commit is contained in:
mega_krevetka committed 2026-09-17 18:07:06 +03:00
1 parent 7a2da4dbd1
commit d797c93d03
3 files changed
+20 -2

No files matched your search

+18
View File
@@ -0,0 +1,18 @@
using System;
using System.Threading;
class HelloWorld {
static void Main() {
Random rnd = new Random();
int PassPrice = rnd.Next(1, 1000);
Console.WriteLine("Сколько ты взял денег с собой???");
int money = Convert.ToInt32(Console.ReadLine());
if(money >= PassPrice)
{
Console.WriteLine("Проходи, денег хватает, нищета");
}
else
{
Console.WriteLine("ЭЭЭ, СТОП! ТЫ НИЩИЙ! ПРОХОДИТЬ НЕЛЬЗЯ!!!");
}
}
}