add Practic #4

This commit is contained in:
svek committed 2022-07-07 22:08:30 +03:00
1 parent 36af336b3b
commit 687316a03d
7 files changed
+19

No files matched your search

+19
View File
@@ -141,6 +141,25 @@ public class Start
Console.WriteLine("Step: " + pract.stepNum(A, B));
break;
case 8:
Console.WriteLine("Input size mass");
int size = Convert.ToInt32(Console.ReadLine());
Console.WriteLine("Input min");
int min = Convert.ToInt32(Console.ReadLine());
Console.WriteLine("Input max");
int max = Convert.ToInt32(Console.ReadLine());
pract.chengeMass(pract.newRandomMass(size, min, max));
break;
case 9:
Console.WriteLine("Input min");
int min1 = Convert.ToInt32(Console.ReadLine());
Console.WriteLine("Input max");
int max1 = Convert.ToInt32(Console.ReadLine());
Console.WriteLine("Count: " + pract.mass20random(pract.newRandomMass(20, min1, max1)));
break;
default:
Console.WriteLine("Wrong task");
break;
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.