using System.Collections.Generic;
using System.ComponentModel;
using System.Runtime.CompilerServices;
using System.Threading.Tasks;
public static double calculateAVG(List<int> data)
for(int i = 0; i < data.Count; i++)
double average = sum / data.Count;
public static void Main()
string[] movie = new string[] { "breaking bad", "walking dead", "vaikings", "fast and furious", "Inception" };
List<int> ranks = new List<int>();
for (int i = 0; i < movie.Length; i++)
string text = "please insert your rank between 1-10 for the movies " + movie[i] + ":";
int rank = Convert.ToInt32(Console.ReadLine());
double avg = calculateAVG(ranks);
Console.WriteLine("the average rank is:");