using System;
namespace Example36
{
///
/// Summary description for Class1.
///
class Class1
{
///
/// The main entry point for the application.
///
[STAThread]
static void Main(string[] args)
{
int[] nums = { 99, 10, 100, 18, 78, 23, 63 };
double sum = 0.0;
for (int i = 0; i < nums.Length; i++)
{
sum = sum + nums[i];
}
Console.WriteLine("Average of nums is {0:F2}", sum / nums.Length);
}
}
}