C# program for average of int values.

Amatya
Posted by Amatya under C# category on | Points: 40 | Views : 191
C# program for average of int values.
var dnfList = new List<int> { 10, 20, 30, 40, 50 };
double dnfAnswer = dnfList .Average();

Result
dnfAnswer 30

Comments or Responses

Login to post response