Skip to content

Instantly share code, notes, and snippets.

using System;
using System.Collections.Generic;
namespace DynamicArray
{
internal class Program
{
private const string ExitCommand = "exit";
private const string SumCommand = "sum";
using System;
namespace Split
{
internal class Program
{
static void Main(string[] args)
{
string text = "Дана строка с текстом, используя метод строки String.Split() получить массив слов, которые разделены пробелом в тексте и вывести массив, каждое слово с новой строки.";
using System;
using System.Collections.Generic;
namespace DynamicArray
{
internal class Program
{
static void Main(string[] args)
{
const string ExitCommand = "exit";
using System;
using System.Collections.Generic;
namespace DynamicArray
{
internal class Program
{
static void Main(string[] args)
{
const string ExitCommand = "exit";
using System;
namespace SortingNumbers
{
internal class Program
{
static void Main(string[] args)
{
int[] numberArray = { 6, 4, 3, 4, 5, 2, 5, 3, 9, 10, 8 };
using System;
using System.Collections.Generic;
namespace CustomerQueueApp
{
class Program
{
static void Main(string[] args)
{
int minimumRandomPurchaseAmount = 99;
using System;
namespace SubarrayRepeatingNumbers
{
internal class Program
{
static void Main(string[] args)
{
int maxRepeatCount = 1;
int currentRepeatCount = 1;
using System;
using System.Collections.Generic;
namespace DynamicArray
{
internal class Program
{
static void Main(string[] args)
{
const string exitCommand = "exit";
using System;
namespace LocalMaxima
{
internal class Program
{
static void Main(string[] args)
{
Random rand = new Random();
using System;
namespace DZ_LocalMaxima
{
internal class Program
{
static void Main(string[] args)
{
int size = 30;
int[] array = new int[size];