//definición del vector
int[] arrayNumeros;//definición del array
arrayNumeros = new int[5];//Inicialización array
//Asignación de valores al Array
arrayNumeros[0] = 20;
arrayNumeros[1] = 40;
arrayNumeros[2] = 60;
arrayNumeros[3] = 80;
arrayNumeros[4] = 10;
//Mostrar elementos de larray
Console.WriteLine("Valor pos 0: " + arrayNumeros[0]);
Console.WriteLine("Valor pos 2: " + arrayNumeros[2]);
Console.WriteLine("Valor pos 4: " + arrayNumeros[4]);
arrayNumeros[2] = 300;
Console.WriteLine("Valor pos 2: " + arrayNumeros[2]);
Console.WriteLine("---------------------------------");
//Definición/Inicialización array valores fijos
double[] arraypesos = { 50.4, 70, 80.5 };
//mostrar elementos del array
Console.WriteLine("Valor pos 0: " + arraypesos[0]);
Console.WriteLine("Valor pos 1: " + arraypesos[1]);
Console.WriteLine("Valor pos 2: " + arraypesos[2]);
//--------------------------------------------------//
double[] arraypromedionotas;
Console.WriteLine("ingrese la cantidad de estudiantes");
_ = int.TryParse(Console.ReadLine(), out int cantNotas);
//definir array segun tamaño ingresado por usuario
arraypromedionotas=new double[cantNotas];
Console.ReadKey();
{"html5":"htmlmixed","css":"css","javascript":"javascript","php":"php","python":"python","ruby":"ruby","lua":"text\/x-lua","bash":"text\/x-sh","go":"go","c":"text\/x-csrc","cpp":"text\/x-c++src","diff":"diff","latex":"stex","sql":"sql","xml":"xml","apl":"apl","asterisk":"asterisk","c_loadrunner":"text\/x-csrc","c_mac":"text\/x-csrc","coffeescript":"text\/x-coffeescript","csharp":"text\/x-csharp","d":"d","ecmascript":"javascript","erlang":"erlang","groovy":"text\/x-groovy","haskell":"text\/x-haskell","haxe":"text\/x-haxe","html4strict":"htmlmixed","java":"text\/x-java","java5":"text\/x-java","jquery":"javascript","mirc":"mirc","mysql":"sql","ocaml":"text\/x-ocaml","pascal":"text\/x-pascal","perl":"perl","perl6":"perl","plsql":"sql","properties":"text\/x-properties","q":"text\/x-q","scala":"scala","scheme":"text\/x-scheme","tcl":"text\/x-tcl","vb":"text\/x-vb","verilog":"text\/x-verilog","yaml":"text\/x-yaml","z80":"text\/x-z80"}