C # - (int) Math.Round ((duplo) (3514 + 3515) / 2) = 3514?
Helo todos.
int[] ai1=new int[2] { 3514,3515 };
void average1()
{
List<int> aveList = new List<int> { ai1[0],ai1[1]};
double AveragLI = aveList.Average();
int AverLI = (int)Math.Round((double)AveragLI);
label1.Text = AverLI.ToString();
}
Retorna 3514; não deve ser 3515?