Skip to content

Instantly share code, notes, and snippets.

View Hellion2008's full-sized avatar

Serg Hellion2008

  • 16:51 (UTC +03:00)
View GitHub Profile
@Hellion2008
Hellion2008 / gist:8abac8180d7b7d7ffc7133f6e6e98512
Created October 29, 2025 13:06
Функции ДЗ: Канзас сити шафл
using System;
namespace CSHome
{
class Program
{
static void Main(string[] args)
{
int[] numbers = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 0};
@Hellion2008
Hellion2008 / gist:0cf15f58b3bb9f709d433adb98231b2c
Last active October 28, 2025 19:53
Функции ДЗ: UIElement
using System;
using System.Text;
namespace CSHome
{
class Program
{
static void Main(string[] args)
{
int health = 65;
@Hellion2008
Hellion2008 / gist:fef4506edca740b10b65b16dc43c7931
Last active October 28, 2025 11:43
Функции ДЗ: ReadInt
using System;
namespace CSHome
{
class Program
{
static void Main(string[] args)
{
int number = ReadInt();
Console.WriteLine();
@Hellion2008
Hellion2008 / gist:60cf867a98078eaea74d7627b879de38
Created October 26, 2025 23:03
Массивы ДЗ: Скобочное выражение
using System;
namespace CSHome
{
class Program
{
static void Main(string[] args)
{
string symbolLine = "(()(()))";
int currentDepth = 0;
@Hellion2008
Hellion2008 / gist:22133a6bd89eeb605612fbd4cd1534f9
Created October 26, 2025 13:50
Массивы ДЗ: Сдвиг значений массива
using System;
namespace CSHome
{
class Program
{
static void Main(string[] args)
{
int[] numbers = { 1, 2, 3, 4};
Console.WriteLine(string.Join(", ", numbers));
@Hellion2008
Hellion2008 / gist:66bb0f23d6bbbd2339b8c89b0e9172d0
Created October 26, 2025 08:40
Массивы ДЗ: Split
using System;
namespace CSHome
{
class Program
{
static void Main(string[] args)
{
string text = "Привет всему миру и вам лично";
Console.WriteLine(text);
@Hellion2008
Hellion2008 / gist:f85d40707945354d886d3d9782bb1726
Created October 25, 2025 19:15
Массив ДЗ: Сортировка чисел
using System;
namespace CSHome
{
class Program
{
static void Main(string[] args)
{
int length = 10;
int[] numbers = new int[length];
@Hellion2008
Hellion2008 / gist:fc2e96e880ebde5b7d31e49cb694d912
Created October 25, 2025 17:37
Массивы ДЗ: Подмассив повторений чисел
using System;
namespace CSHome
{
class Program
{
static void Main(string[] args)
{
Console.InputEncoding = System.Text.Encoding.Unicode;
Console.OutputEncoding = System.Text.Encoding.Unicode;
@Hellion2008
Hellion2008 / gist:c88349f03c3d03f5daa6beaf59bc0e0a
Last active October 25, 2025 09:56
Массив ДЗ: Динамический массив
using System;
using System.Security.Cryptography;
namespace CSHome
{
class Program
{
static void Main(string[] args)
{
Console.InputEncoding = System.Text.Encoding.Unicode;
@Hellion2008
Hellion2008 / gist:50d538e9731464f54fcf92b39db8952f
Last active October 24, 2025 18:36
Массивы ДЗ: Локальные максимумы
using System;
namespace CSHome
{
class Program
{
static void Main(string[] args)
{
Console.InputEncoding = System.Text.Encoding.Unicode;
Console.OutputEncoding = System.Text.Encoding.Unicode;