Skip to content

Instantly share code, notes, and snippets.

@Densfi
Densfi / gist:89760314b9c7cb34ea39aaccd1ca1ed5
Created February 14, 2026 06:01
ДЗ: Подмассив повторений чисел
using System;
namespace ConsoleApp2
{
internal class Program
{
static void Main(string[] args)
{
int[] numbers = new int[30];
Random random = new Random();
@Densfi
Densfi / gist:2705124049cd402aee3e088ef8ad24c3
Last active January 27, 2026 04:41
ДЗ: Динамический массив
using System;
namespace ConsoleApp2
{
internal class Program
{
static void Main(string[] args)
{
const string CommandSum = "sum";
const string CommandExit = "exit";
@Densfi
Densfi / gist:3b9ff3b2fc7ba0ba78df46f12d83acd6
Last active January 27, 2026 10:18
ДЗ: Локальные максимумы
using System;
namespace ConsoleApp2
{
internal class Program
{
static void Main(string[] args)
{
int[] numbers = new int[30];
Random random = new Random();
@Densfi
Densfi / gist:bf70e630ee67b93058a6f20737fe0a21
Created January 25, 2026 18:08
ДЗ: Наибольший элемент
using System;
namespace ConsoleApp2
{
internal class Program
{
static void Main(string[] args)
{
int[,] numbers = new int[10,10];
int numbersMaxValue = numbers[0,0];
@Densfi
Densfi / gist:31f9b612910bf339c35f5faf07231c62
Last active January 27, 2026 08:46
ДЗ: Работа с конкретными строками/столбцами
using System;
namespace ConsoleApp2
{
internal class Program
{
static void Main(string[] args)
{
int[,] numbers =
{
using System;
namespace ConsoleApp2
{
internal class Program
{
static void Main(string[] args)
{
const string CommandFireball = "1";
const string CommandExplosion = "2";
using System;
namespace ConsoleApp2
{
internal class Program
{
static void Main(string[] args)
{
int minRandomValue = 1;
int maxRandomValue = 100;
@Densfi
Densfi / gist:c0c55c0341eee5212ad0ccdd867d0ce4
Last active January 25, 2026 12:46
ДЗ: Кратные числа
using System;
namespace ConsoleApp2
{
internal class Program
{
static void Main(string[] args)
{
int minRandomValue = 10;
int maxRandomValue = 25;
using System;
using System.Web;
namespace ConsoleApp2
{
internal class Program
{
static void Main(string[] args)
{
using System;
namespace ConsoleApp2
{
internal class Program
{
static void Main(string[] args)
{
string userName;
string userSymbol;