This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
namespace DynamicArray | |
{ | |
internal class Program | |
{ | |
private const string ExitCommand = "exit"; | |
private const string SumCommand = "sum"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
namespace Split | |
{ | |
internal class Program | |
{ | |
static void Main(string[] args) | |
{ | |
string text = "Дана строка с текстом, используя метод строки String.Split() получить массив слов, которые разделены пробелом в тексте и вывести массив, каждое слово с новой строки."; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
namespace DynamicArray | |
{ | |
internal class Program | |
{ | |
static void Main(string[] args) | |
{ | |
const string ExitCommand = "exit"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
namespace DynamicArray | |
{ | |
internal class Program | |
{ | |
static void Main(string[] args) | |
{ | |
const string ExitCommand = "exit"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
namespace CustomerQueueApp | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
int minimumRandomPurchaseAmount = 99; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
namespace SubarrayRepeatingNumbers | |
{ | |
internal class Program | |
{ | |
static void Main(string[] args) | |
{ | |
int maxRepeatCount = 1; | |
int currentRepeatCount = 1; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
namespace DynamicArray | |
{ | |
internal class Program | |
{ | |
static void Main(string[] args) | |
{ | |
const string exitCommand = "exit"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
namespace LocalMaxima | |
{ | |
internal class Program | |
{ | |
static void Main(string[] args) | |
{ | |
Random rand = new Random(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
namespace DZ_LocalMaxima | |
{ | |
internal class Program | |
{ | |
static void Main(string[] args) | |
{ | |
int size = 30; | |
int[] array = new int[size]; |