C# program for average of decimal values.

Amatya
Posted by Amatya under C# category on | Points: 40 | Views : 183
C# program for average of decimal values.
var dnfList = new List<decimal> { 2, 5.2,10.5 };
decimal dnfAnswer = dnfList.Average();


Result
dnfAnswer 5.9

Comments or Responses

Login to post response