// Create a program that will ask the user to enter 5 numbers.
// Once the numbers have been entered, compute and display
// the average of these numbers.
using System;
public class HelloWorld
{
public static void Main(string[] args)
int[] num = new int[5]; //array declaration
int x;
int total = 0;
double average;
//ask for inputs and store it in an array
for(x = 0; x < 5; x++)
Console.Write("Enter a number : ");
num[x] = int.Parse(Console.ReadLine());
}
//compute for the average
total = total + num[x];
average = total / 5;
Console.WriteLine("Average = " + average);