using System.Collections.Generic;
using System.Threading.Tasks;
public static void Main()
public static void RandomTest()
Console.WriteLine("Введите кол-во попыток(Целое число):");
Console.WriteLine("Введите процент удачной попытки(можно не целым числом):");
Console.WriteLine("Введённые данные не соотвествуют логике программы. \n Код ошибки:\n" + ex);
for(int i = 1; i<Quantity+1; i++)
Console.WriteLine("Попытка #"+i);
Console.WriteLine("Удачно!");
Console.WriteLine("Конец цикла. Удачных попыток:" + count);
private static Boolean Randomizer(double Percent)
Random rnd = new Random();
if(Percent >= Convert.ToDouble(rnd.Next(100)))
public static void coor()
List<int> ts = new List<int>();
double[] arrd = new double[]{15.41, 25.63, 100.28};
int[] arr = new int[]{10, 50, 32};
int[] arr1 = new int[]{6,32,10};
Console.WriteLine("" + sumarr(arr) +
public static int sumarr(List<int> lis)
public static int sumarr(int[] arr)
for(int i = 0; i<arr.Length; i++)
public static int sumarr(double[] arr)
for(int i = 0; i<arr.Length; i++)
return Convert.ToInt32(Math.Round(sum, 0));