This file contains hidden or 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() | |
| { | |
| int number = ReadInt(); | |
| Console.WriteLine($"Вы ввели число: {number}"); | |
| } | |
| static int ReadInt() |
This file contains hidden or 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() | |
| { | |
| int depth = 0; | |
| int maxDepth = 0; | |
| bool isCorrect = true; | |
| char openBracket = '('; |
This file contains hidden or 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() | |
| { | |
| int[] numbers = { 1, 2, 3, 4, 5 }; | |
| int shift; | |
| int length; | |
| Console.WriteLine("Исходный массив:"); |
This file contains hidden or 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() | |
| { | |
| Console.Write("Введите текст: "); | |
| string text = Console.ReadLine(); | |
| string[] words = text.Split(' '); | |
| Console.WriteLine("\nСлова в тексте:"); |
This file contains hidden or 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() | |
| { | |
| int size = 10; | |
| int minValue = 0; | |
| int maxValue = 100; | |
| int[] numbers = new int[size]; |
This file contains hidden or 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() | |
| { | |
| int size = 30; | |
| int minValue = 0; | |
| int maxValue = 10; | |
| int currentCount = 1; | |
| int maxCount = 1; |
This file contains hidden or 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
| using System; | |
| class Program | |
| { | |
| static void Main() | |
| { | |
| int size = 30; | |
| int minValue = 0; | |
| int maxValue = 100; |
This file contains hidden or 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
| using System; | |
| class Program | |
| { | |
| static void Main() | |
| { | |
| int rows = 10; | |
| int cols = 10; | |
| int minValue = 0; | |
| int maxValue = 10; |
This file contains hidden or 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() | |
| { | |
| int[,] matrix = | |
| { | |
| { 2, 3, 4, 5 }, | |
| { 6, 7, 8, 9 }, | |
| { 1, 2, 3, 4 } | |
| }; |
This file contains hidden or 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() | |
| { | |
| const string CommandAttack = "1"; | |
| const string CommandFirebool = "2"; | |
| const string CommandExplode = "3"; | |
| const string CommandHeal = "4"; | |
| int heroHealth = 100; |