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
internal class Program | |
{ | |
static void Main(string[] args) | |
{ | |
List<int> numbers = new List<int>(); | |
string inputSumm = "summ"; | |
string inputExit = "exit"; | |
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
internal class Program | |
{ | |
static void Main(string[] args) | |
{ | |
int moneyInVallet = 0; | |
int numberOfPeople = 10; | |
int minRandom = 10; | |
int maxRandom = 100; | |
Random random = new Random(); |
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
internal class Program | |
{ | |
static void Main(string[] args) | |
{ | |
while (true) | |
{ | |
Dictionary<string, string> dictionary = new Dictionary<string, string>(); | |
dictionary.Add("кукуруза", "культурное растение семейства злаков"); | |
dictionary.Add("картофель", "вид многолетних клубненосных травянистых растений из рода Паслён"); |
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
internal class Program | |
{ | |
static void Main(string[] args) | |
{ | |
Dictionary<string, string> dictionary = new Dictionary<string, string>(); | |
dictionary.Add("кукуруза", "культурное растение семейства злаков"); | |
dictionary.Add("картофель", "вид многолетних клубненосных травянистых растений из рода Паслён"); | |
dictionary.Add("свекла", "Корнеплод, растение с толстыми корнями, которые богаты органическими веществами"); |
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
internal class Program | |
{ | |
static void Main(string[] args) | |
{ | |
Console.CursorVisible = false; | |
char[,] map = { | |
{'#','#','#','#','#','#','#','#','#','#'}, | |
{'#','.','.','#','.','.','.','.','.','#'}, | |
{'#','.','.','#','.','.','.','.','.','#'}, |
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
internal class Program | |
{ | |
static void Main(string[] args) | |
{ | |
Console.CursorVisible = false; | |
char[,] map = { | |
{'#','#','#','#','#','#','#','#','#','#'}, | |
{'#','.','.','#','.','.','.','.','.','#'}, | |
{'#','.','.','#','.','.','.','.','.','#'}, |
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
internal class Program | |
{ | |
static void Main(string[] args) | |
{ | |
const string CommandAddDossier = "1"; | |
const string CommandPrintDossier = "2"; | |
const string CommandDelleteDossier = "3"; | |
const string CommandSearchByFamily = "4"; | |
const string CommandExitProgram = "5"; |
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
internal class Program | |
{ | |
static void Main(string[] args) | |
{ | |
int[] array = new int[10]; | |
for (int i = 0; i < array.Length; i++) | |
{ | |
array[i] = i; | |
} |
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
internal class Program | |
{ | |
static void Main(string[] args) | |
{ | |
int maxPercent = 100; | |
Console.Write("Введите количество процентов для здоровья : "); | |
double percentOfHealth = Convert.ToDouble(Console.ReadLine()); | |
Console.Write("Введите количество процентов для манны : "); |
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
internal class Program | |
{ | |
static void Main(string[] args) | |
{ | |
int number = ReadNumber(); | |
Console.WriteLine($"Преобразование прошло успешно. Число: {number}"); | |
Console.ReadKey(); | |
} | |
static int ReadNumber() |
NewerOlder