Random a = new Random();
int[] aa = new int[20];
int total = 0;
for (int i = 0; i < 20; i++)
{
aa[i] = a.Next(10,99);
if (aa[i] %2 == 0 && aa[i] % 3 == 0)
{
total += aa[i];
}
}
Console.Read();
Random a = new Random();
int[] aa = new int[20];
int total = 0;
for (int i = 0; i < 20; i++)
{
aa[i] = a.Next(10,99);
if (aa[i] %2 == 0 && aa[i] % 3 == 0)
{
total += aa[i];
}
}
Console.Read();