Skip to content

Instantly share code, notes, and snippets.

@SerKaz2003
SerKaz2003 / gist:aa6a13b6fab4862f7268bb830a5a6833
Created November 4, 2025 16:39
Сдвиг значений массива
using System;
namespace DZ
{
internal class Program
{
static void Main(string[] args)
{
int arrayLenght = 5;
@SerKaz2003
SerKaz2003 / gist:adf4ee01ad1a51257c1b0078485b979b
Created November 4, 2025 16:24
Подмассив повторений чисел
using System;
namespace DZ
{
internal class Program
{
static void Main(string[] args)
{
int arrayLenght = 30;
@SerKaz2003
SerKaz2003 / gist:a5570bf3baa960d9a01c600e5e89c2b0
Created November 4, 2025 15:55
Локальные максимумы
using System;
namespace DZ
{
internal class Program
{
static void Main(string[] args)
{
int arrayLenght = 30;
@SerKaz2003
SerKaz2003 / gist:a49547c21c178fc7b40290c2688296af
Last active November 4, 2025 18:03
Бой с Боссом
using System;
namespace DZ
{
internal class Program
{
static void Main(string[] args)
{
const string CommandAttackHero = "1";
const string CommandFireBallHero = "2";
@SerKaz2003
SerKaz2003 / gist:92cb6f93635e932e151bf169e67ba33f
Last active November 4, 2025 13:49
Степень двойки
using System;
namespace DZ
{
internal class Program
{
static void Main(string[] args)
{
Random random = new Random();
int minValue = 1;
@SerKaz2003
SerKaz2003 / gist:ad7e4d85b5f0c72fa0087b203a49473b
Last active November 4, 2025 13:57
Кратные числа
using System;
namespace DZ
{
internal class Program
{
static void Main(string[] args)
{
Random random = new Random();
int minValue = 10;
@SerKaz2003
SerKaz2003 / gist:4fd3bae5384d4df32ccaf7a0f77ce37c
Last active November 4, 2025 15:22
Программа под паролем
using System;
namespace DZ
{
internal class Program
{
static void Main(string[] args)
{
int numberOfTries = 3;
using System;
namespace DZ
{
internal class Program
{
static void Main(string[] args)
{
Console.WriteLine("Введите любой символ");
char simbol = Console.ReadKey().KeyChar;
@SerKaz2003
SerKaz2003 / gist:0000e72ce7b6132754ed5c9b79286ffd
Created November 4, 2025 11:44
Конвертер валют
using System;
namespace DZ
{
internal class Program
{
static void Main(string[] args)
{
const string CommandRublesToDollars = "1";
const string CommandRublesToEuros = "2";
@SerKaz2003
SerKaz2003 / gist:c8395c66f82a8f9d043216d668790639
Created November 2, 2025 18:25
Консольное меню
using System;
namespace DZ
{
internal class Program
{
static void Main(string[] args)
{
const string CommandHelp = "help";
const string CommandHello = "hello";