mirror of
https://github.com/svek95/programming_GB.git
synced 2026-05-17 18:41:44 +03:00
add Practic #4
This commit is contained in:
@@ -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.
Reference in New Issue
Block a user