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
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
Criminal criminal1 = new Criminal("Дамский угодник", false, 185, 102, "англичанин"); | |
Criminal criminal2 = new Criminal("Карманник", false, 160, 55, "русский"); | |
Criminal criminal3 = new Criminal("Форточник", true, 173, 80, "англичанин"); | |
Criminal criminal4 = new Criminal("Серийный убийца", false, 185, 102, "англичанин"); | |
List<Criminal> criminals = new List<Criminal>() { criminal1, criminal2 , criminal3, criminal4 }; |
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
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
bool isOpen = true; | |
int input; | |
int inputIndex; | |
AutoService autoService = new AutoService(); |
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
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
bool isOpen = true; | |
string input; | |
int inputFishIndex; | |
Aquarium aquarium = new Aquarium(); |
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
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
bool isFightEnded = false; | |
bool isFirstCountyLost = false; | |
bool isSecondCountyLost = false; | |
Country country1 = new Country("Пакистан"); | |
Country country2 = new Country("Ватикан"); |
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
public enum Gender | |
{ | |
man, woman | |
} | |
class Program | |
{ | |
static private Random _random = new Random(); | |
static void Main(string[] args) |
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
class Program | |
{ | |
private static Random _random = new Random(); | |
static void Main(string[] args) | |
{ | |
int shoppersCount = 5; | |
int shopperIndex = 1; | |
Queue<Shopper> shoppers = new Queue<Shopper>(); |
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
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
Warlock warlock = new Warlock(200, 50, 20, 5, "Колдун"); | |
Swordman swordman = new Swordman(200, 15, 40, 15, "Воин"); | |
Archer archer = new Archer(200, 35, 35, 10, "Лучник"); | |
Priest priest = new Priest(250, 50, 25, 10, "Священник"); | |
Tank tank = new Tank(300, 0, 30, 20, "Танк"); |
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
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
Random random = new Random(); | |
int countTickets = 0; | |
string pointA = ""; | |
string pointB = ""; | |
string inputComand; | |
bool isOpen = true; |
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
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
string commandCode; | |
bool isOpen = true; | |
Player player = new Player(250); | |
Trader trader = new Trader(new List<Item> |
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
static void Main(string[] args) | |
{ | |
bool isFinish = false; | |
int valueChangeX; | |
int valueChangeY; | |
int userX = 4; | |
int userY = 4; | |
char[,] map = | |
{ | |
{'#','#','#','#','#','#','#','#','#','#','#','#','#'}, |