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 minValue = 0; | |
| int maxValue = 100; | |
| int currentPower = 2; | |
| Random rand = new Random(); | |
| int number = rand.Next(minValue, maxValue); |
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 minRandomNumber = 10; | |
| int maxRandomNumber = 25; | |
| int rangeStart = 50; | |
| int rangeEnd = 150; | |
| Random random = new Random(); |
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() | |
| { | |
| string correctPassword = "12345"; | |
| int attempts = 3; | |
| for (int i = 1; i <= attempts; i++) | |
| { |
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("Введите символ рамки: "); | |
| char borderChar = Console.ReadKey().KeyChar; | |
| Console.WriteLine(); | |
| Console.Write("Введите имя: "); | |
| string name = Console.ReadLine(); |
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 CommandGoldToCrystal = "1"; | |
| const string CommandCrystalToGold = "2"; | |
| const string CommandGoldToDiamond = "3"; | |
| const string CommandDiamondToGold = "4"; | |
| const string CommandCrystalToDiamond = "5"; | |
| const string CommandDiamondToCrystal = "6"; |
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
| public class Class | |
| { | |
| static void Main() | |
| { | |
| const string CommandFirstText = "1"; | |
| const string CommandSecondText = "2"; | |
| const string CommandRandomNumber = "3"; | |
| const string CommandClearConsole = "4"; | |
| const string CommandExit = "0"; |
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
| public class Class | |
| { | |
| static void Main() | |
| { | |
| Random random = new Random(); | |
| int minValue = -100; | |
| int maxValue = 100; | |
| int multipleX = 3; | |
| int multipleY = 5; | |
| int number = random.Next(minValue, maxValue); |
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
| public class Class | |
| { | |
| static void Main() | |
| { | |
| int number = 5; | |
| int step = 7; | |
| int maxNumber = 789; | |
| for (int i = number; i <= maxNumber; i += step) | |
| { |
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
| public class Class | |
| { | |
| static void Main() | |
| { | |
| string wordExit = "exit"; | |
| string word = ""; | |
| while (word != wordExit) | |
| { | |
| Console.Write("Введите слово: "); |
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
| public class Class | |
| { | |
| static void Main() | |
| { | |
| string name; | |
| int count; | |
| Console.Write("Как вас зовут: "); | |
| name = Console.ReadLine(); |