mirror of
https://github.com/svek95/programming_GB.git
synced 2026-06-09 23:18:33 +03:00
add Practic #4
This commit is contained in:
@@ -140,6 +140,25 @@ public class Start
|
|||||||
int B = Convert.ToInt32(Console.ReadLine());
|
int B = Convert.ToInt32(Console.ReadLine());
|
||||||
Console.WriteLine("Step: " + pract.stepNum(A, B));
|
Console.WriteLine("Step: " + pract.stepNum(A, B));
|
||||||
break;
|
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:
|
default:
|
||||||
Console.WriteLine("Wrong task");
|
Console.WriteLine("Wrong task");
|
||||||
|
|||||||
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