конец

This commit is contained in:
Adelina888 2024-06-29 17:25:47 +04:00
parent 2f17ff6016
commit 155634f1d8

View File

@ -223,7 +223,7 @@ namespace Praktika
}
else if (flag == 6)
{
richTextBox1.Text = "";
richTextBox1.Text = "8. Äàí öåëî÷èñëåííûé äâóìåðíûé ìàññèâ ðàçìåðà N*N. Óïîðÿäî÷èòü\r\nýëåìåíòû â ìàòðèöå ïî âîçðàñòàíèþ (ñïðàâà íàëåâî, ñíèçó-ââåðõ)";
}
else
{
@ -487,20 +487,20 @@ namespace Praktika
richTextBox1.Text = sb.ToString();
//richTextBox1.Text = array2D.ToString();
//result = string.Join(" ", array2D);*/
/*int s = 0;
int s = 0;
double ar = 0;
int len2 = len;
for (int j = 0; j < len2; j++)
{
for (int i = 0; i < len; i++)
{
if (array2D[i, j] >= 0)
if (array2D[i, j] < 0 )
{
s += array2D[i, j];
}
}
}
ar = double(s / (len * len2));
ar = (double)s / (len * len2);
//çàäàíèå 5
@ -508,7 +508,7 @@ namespace Praktika
{
for (int i = 0; i < len; i++)
{
if (Math.Abs(array2D[i, j]) > ar)
if (Math.Abs(array2D[i, j]) > ar && array2D[i,j] != 0)
{
for (int k = len2; k > j; k--)
{
@ -541,10 +541,10 @@ namespace Praktika
}
result = str;
flag = 5;*/
flag = 5;
//çàäàíèå 6
int s =0;
/*int s =0;
double ar ;
int len2 = len;
@ -597,7 +597,7 @@ namespace Praktika
}
result = str;
flag = 5;
flag = 5;*/
/*StringBuilder sbResult = new StringBuilder();
@ -779,6 +779,7 @@ namespace Praktika
}
result = str;
flag = 6;
}
public void SortLP(int[,] arr,int r)