Skip to content

Instantly share code, notes, and snippets.

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++)
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;
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";
namespace _1_1
{
internal class Program
{
static void Main(string[] args)
{
const string CloseAp = "exit";
Console.WriteLine($"Введите '{CloseAp}' для завершения работы");
string word = "type";
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;
namespace ConsoleApp1
{
internal class Program
{
static void Main(string[] args)
{
int step = 7;
int first_position = 5;
int last_position = 103;
namespace ConsoleApp1
{
internal class Program
{
static void Main(string[] args)
{
Console.Write("Введите значение N:");
int n_number = Convert.ToInt32(Console.ReadLine());
int div_count = 0;
namespace ConsoleApp1
{
internal class Program
{
static void Main(string[] args)
{
int attemptsLeft = 3;
string password = "44qweundediv";
for (int i = 1; i <= attemptsLeft; i++)
namespace ConsoleApp1
{
internal class Program
{
static void Main(string[] args)
{
Console.Write("Введите имя:");
string name = Console.ReadLine();
Console.Write("Введите символ:");
string symbol = Console.ReadLine();
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";