Answers for "Average C#"

C#
0

Average C#

using System;
using System.Linq;
using System.Collections.Generic;
class Demo {
   static void Main() {
      List<int> list = new List<int> { 5, 8, 13, 35, 67 };
      double avg = Queryable.Average(list.AsQueryable());
      Console.WriteLine("Average = "+avg);
   }
}
Posted by: Guest on September-17-2021

C# Answers by Framework

Browse Popular Code Answers by Language