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 _2_1 | |
{ | |
internal class Program | |
{ | |
static void Main(string[] args) | |
{ | |
int[,] matrix = new int[10, 10]; | |
Random rand = new Random(); | |
for (int i = 0; i < 10; 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
namespace _2_0 | |
{ | |
internal class Program | |
{ | |
static void Main(string[] args) | |
{ | |
int[,] numbers = { { 4, 4 }, { 1, 1 } }; | |
int rows = numbers.GetUpperBound(0) + 1; | |
int columns = numbers.Length / rows; | |
int numProizv = 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
namespace _1_10 | |
{ | |
internal class Program | |
{ | |
static void Main(string[] args) | |
{ | |
const string HeroDefaultAttack = "1"; | |
const string HeroFireBall = "2"; | |
const string HeroExplodeAttack = "3"; | |
const string HeroHealthManaRegain = "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
namespace _1_1 | |
{ | |
internal class Program | |
{ | |
static void Main(string[] args) | |
{ | |
const string CloseAp = "exit"; | |
Console.WriteLine($"Введите '{CloseAp}' для завершения работы"); | |
string word = "type"; | |
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 ConsoleApp1 | |
{ | |
internal class Program | |
{ | |
static void Main(string[] args) | |
{ | |
Random rand = new Random(); | |
int randomInt = rand.Next(1, 400); | |
Console.WriteLine($"Случайное число: {randomInt}"); | |
int currentPowOfTwo = 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
namespace ConsoleApp1 | |
{ | |
internal class Program | |
{ | |
static void Main(string[] args) | |
{ | |
int step = 7; | |
int first_position = 5; | |
int last_position = 103; |
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 ConsoleApp1 | |
{ | |
internal class Program | |
{ | |
static void Main(string[] args) | |
{ | |
Console.Write("Введите значение N:"); | |
int n_number = Convert.ToInt32(Console.ReadLine()); | |
int div_count = 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 ConsoleApp1 | |
{ | |
internal class Program | |
{ | |
static void Main(string[] args) | |
{ | |
int attemptsLeft = 3; | |
string password = "44qweundediv"; | |
for (int i = 1; i <= attemptsLeft; 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
namespace ConsoleApp1 | |
{ | |
internal class Program | |
{ | |
static void Main(string[] args) | |
{ | |
Console.Write("Введите имя:"); | |
string name = Console.ReadLine(); | |
Console.Write("Введите символ:"); | |
string symbol = 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
namespace ConsoleApp1 | |
{ | |
internal class Program | |
{ | |
static void Main(string[] args) | |
{ | |
const string ConvertRublesToEuro = "1"; | |
const string ConvertRublesToDollar = "2"; | |
const string ConvertEuroToRubles = "3"; | |
const string ConvertEuroToDollar = "4"; |
NewerOlder