C# Average Of Array
C# Average Of Array . //variable to hold sum and average of array int sum = 0; An array index always starts at 0. 8086 program to determine largest number in an array of n numbers from www.geeksforgeeks.org Var arr = new int [] { 10, 17, 25, 30, 40, 55, 60, 70 }; First, add the using system.linq directive to include the linq namespace. We can call the average () method as this way intarray.average ().