mirror of
https://github.com/svek95/programming_GB.git
synced 2026-06-09 23:18:33 +03:00
@@ -34,6 +34,7 @@ public class Start
|
||||
{
|
||||
HomeWork HW = new HomeWork();
|
||||
Practics pract = new Practics();
|
||||
Tools myTools = new Tools();
|
||||
|
||||
Console.Write("Wich task: ");
|
||||
Console.WriteLine("WH2 is 10, 13, 15");
|
||||
@@ -109,6 +110,56 @@ public class Start
|
||||
//Console.WriteLine("Summ is: " + HW.Task_38(pract.newRandomMass(size2, min2, max2)));
|
||||
HW.Task_38(pract.newRandomMass(size2, min2, max2));
|
||||
break;
|
||||
case 41:
|
||||
Console.WriteLine("Input M numbers");
|
||||
int size3 = Convert.ToInt32(Console.ReadLine());
|
||||
Console.WriteLine("Numbers more then 0 is: "+HW.Tak_41(HW.craeteMass(size3)));
|
||||
break;
|
||||
case 43:
|
||||
Console.WriteLine("Input b1");
|
||||
int b1 = Convert.ToInt32(Console.ReadLine());
|
||||
Console.WriteLine("Input k1");
|
||||
int k1 = Convert.ToInt32(Console.ReadLine());
|
||||
Console.WriteLine("Input b2");
|
||||
int b2 = Convert.ToInt32(Console.ReadLine());
|
||||
Console.WriteLine("Input k2");
|
||||
int k2 = Convert.ToInt32(Console.ReadLine());
|
||||
Console.Write("Dot Cross is:");
|
||||
HW.PrintArray(HW.Task_43(b1, k1, b2, k2));
|
||||
break;
|
||||
|
||||
case 47:
|
||||
Console.WriteLine("Input number of rows: ");
|
||||
int rows = Convert.ToInt32(Console.ReadLine());
|
||||
Console.WriteLine("Input number of columns: ");
|
||||
int columns = Convert.ToInt32(Console.ReadLine());
|
||||
myTools.ShowDoublet2dArray(HW.Task_47(rows, columns));
|
||||
|
||||
break;
|
||||
|
||||
case 50:
|
||||
int[,] data50 = myTools.CreateRandom2dArray(5, 5, -10, 10);
|
||||
myTools.ShowInt2dArray(data50);
|
||||
Console.WriteLine("Input indexRows: ");
|
||||
int indexRows = Convert.ToInt32(Console.ReadLine());
|
||||
Console.WriteLine("Input indexColumns: ");
|
||||
int indexColumns = Convert.ToInt32(Console.ReadLine());
|
||||
HW.Task_50(data50, indexRows, indexColumns);
|
||||
break;
|
||||
|
||||
case 52:
|
||||
int[,] data52 = myTools.CreateRandom2dArray(4, 4, 0, 3);
|
||||
myTools.ShowInt2dArray(data52);
|
||||
HW.Task_52(data52);
|
||||
|
||||
break;
|
||||
|
||||
case 100:
|
||||
int[] data47 = myTools.RiadeLine4data();
|
||||
myTools.ShowInt2dArray(myTools.CreateRandom2dArray(data47[0], data47[1], data47[2], data47[3]));
|
||||
|
||||
|
||||
break;
|
||||
|
||||
|
||||
default:
|
||||
@@ -120,8 +171,10 @@ public class Start
|
||||
}
|
||||
|
||||
static void PracticsTask()
|
||||
|
||||
{
|
||||
Practics pract = new Practics();
|
||||
Tools myTools = new Tools();
|
||||
|
||||
Console.Write("Wich task: ");
|
||||
int taskNumver = Convert.ToInt32(Console.ReadLine());
|
||||
@@ -202,6 +255,24 @@ public class Start
|
||||
Console.WriteLine("Rwsault is: ");
|
||||
pract.printArray(pract.fibanach(number10));
|
||||
break;
|
||||
|
||||
case 12:
|
||||
Console.WriteLine("FInput number of rows: ");
|
||||
int rows = Convert.ToInt32(Console.ReadLine());
|
||||
Console.WriteLine("Input number of columns: ");
|
||||
int columns = Convert.ToInt32(Console.ReadLine());
|
||||
Console.WriteLine("Third min");
|
||||
int min2d = Convert.ToInt32(Console.ReadLine());
|
||||
Console.WriteLine("Third max");
|
||||
int max2d = Convert.ToInt32(Console.ReadLine());
|
||||
int[,] myArray = myTools.CreateRandom2dArray(rows, columns, min2d, max2d);
|
||||
myTools.ShowInt2dArray(myArray);
|
||||
Console.WriteLine(" ");
|
||||
Console.WriteLine("Resault:");
|
||||
int[,] myArrayRev = pract.Task1_8(myArray);
|
||||
myTools.ShowInt2dArray(myArrayRev);
|
||||
|
||||
break;
|
||||
|
||||
default:
|
||||
Console.WriteLine("Wrong task");
|
||||
|
||||
Reference in New Issue
Block a user