En el presente articulo va encontrar el c贸digo fuente para el video sobre los arrays.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using static System.Math;
using System.Threading.Tasks;
namespace Proyecto1
{
class Program
{
static void Main(string[] args)
{
//Declarar variables
String[] nombres = new String[5];
//Ingreso de datos
for(int i = 0; i < 5; i++)
{
string nombre = "";
Console.WriteLine((i+1)+". Ingrese un nombre: ");
nombre = Console.ReadLine();
nombres[i] = nombre;
}
//Impresion de datos
for(int i = 0; i < nombres.Length; i++)
{
Console.WriteLine("************************");
Console.WriteLine("El nombre ingresado es: "+nombres[i]);
}
Console.ReadKey();
}
}
}
聽
Contenidos del bloque de: Arrays y matrices
Curso sobre C# desde cero - Video #7 (Arrays) [Ejemplo #1] C贸digo fuente utilizado - Video #7 Curso sobre C# desde cero - Video #8 (Arrays) [Ejemplo #2] C贸digo fuente utilizado - Video #8