Llenado de matrices

using System;

namespace Matriz_de_datos_nombresgrupo
{
    class Program
    {
        static void Main(string[] args)
        {
         
            //Variables
            //Se crean los vectores
            string[] nombres = new string[10];
            string[] apellido = new string[10];
            int[] edad = new int[10];
            double[] cedula = new double[10];

            //Iniciamos ciclos para solicitar los datos
            for (int i= 0; i < nombres.Length; i++)
            {
                Console.WriteLine("Por favor ingrese el nombre de la persona " + (i + 1));
                nombres[i] = Console.ReadLine();

                Console.WriteLine("Por favor ingrese el apellido de " + nombres[i]);
                apellido[i] = Console.ReadLine();

                Console.WriteLine("Por favor ingrese el número de cédula de " + nombres[i] + " " + apellido[i]);
                cedula[i] = Convert.ToDouble(Console.ReadLine());

                Console.WriteLine("Por favor ingrese la edad de " + nombres[i] + " " +apellido[i]);
                edad[i] = Convert.ToInt32(Console.ReadLine());
            }

            //Limpiamos pantalla
            Console.Clear();

            //Imprimimos los datos correspondientes
            Console.WriteLine("NOMBRE - APELLIDO - CEDULA - EDAD  ");
            for (int j = 0; j < nombres.Length; j++)
            {
                Console.WriteLine(nombres[j] +" -  " + apellido[j] + " -  " + cedula[j]+ "  - " + edad[j]);               
            }
            Console.ReadKey();
        }
    }
}

Comentarios