public static void Main()
Console.WriteLine("Write as many number as you want but once you write zero I´ll tell you the average of how many numbers you wrote");
num1 = int.Parse(Console.ReadLine());
num1 = int.Parse(Console.ReadLine());
Console.WriteLine("The avarage of the numbers you wrote before writing a zero is:" + " " + a);