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
namespace ConsoleApp5 | |
{ | |
internal class Program | |
{ | |
static void Main(string[] args) | |
{ | |
int maxHealth = 100; | |
int percentOfHealth = 30; | |
int health = maxHealth * percentOfHealth / 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
namespace ConsoleApp5 | |
{ | |
internal class Program | |
{ | |
static void Main(string[] args) | |
{ | |
int number; | |
number = ConvertToNum(); | |
Console.WriteLine($"Вы ввели {number}"); | |
} |
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
namespace ConsoleApp5 | |
{ | |
internal class Program | |
{ | |
static void Main(string[] args) | |
{ | |
String text = "(()(()))"; | |
int maxDepth = 0; | |
int depth = 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
namespace ConsoleApp5 | |
{ | |
internal class Program | |
{ | |
static void Main(string[] args) | |
{ | |
int[] array = { 0, 1, 2, 3 }; | |
int shift = 2; | |
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
namespace ConsoleApp5 | |
{ | |
internal class Program | |
{ | |
static void Main(string[] args) | |
{ | |
String text = "Привет, мир!"; | |
String[] splitText = text.Split(); | |
Console.WriteLine(text); |
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
namespace ConsoleApp5 | |
{ | |
internal class Program | |
{ | |
static void Main(string[] args) | |
{ | |
Random random = new Random(); | |
int minRandomNumber = 1; | |
int maxRandomNumber = 1000; |
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
namespace ConsoleApp5 | |
{ | |
internal class Program | |
{ | |
static void Main(string[] args) | |
{ | |
Random random = new Random(); | |
int minRandomNumber = 1; | |
int maxRandomNumber = 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
namespace ConsoleApp6 | |
{ | |
internal class Program | |
{ | |
static void Main(string[] args) | |
{ | |
int[] array = {}; | |
String userInput; | |
int num; | |
bool isWork = true; |
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
namespace ConsoleApp6 | |
{ | |
internal class Program | |
{ | |
static void Main(string[] args) | |
{ | |
Random random = new Random(); | |
int length = 30; | |
int[] array = new int[length]; |
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
namespace ConsoleApp5 | |
{ | |
internal class Program | |
{ | |
static void Main(string[] args) | |
{ | |
Random random = new Random(); | |
int columns = 10; | |
int rows = 10; |