lesson 2
This commit is contained in:
1 parent
7a2da4dbd1
commit
d797c93d03
3 files changed
+20
-2
No files matched your search
+18
@@ -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("ЭЭЭ, СТОП! ТЫ НИЩИЙ! ПРОХОДИТЬ НЕЛЬЗЯ!!!");
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user