Arreglo 2D 01.11.2016

Run Settings
LanguageC#
Language Version
Run Command
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace _2016_prograUno_01._11_2Darray { class Program { static void Main(string[] args) { int[] arreglo1D = new int[4]; int[,] arreglo2d = new int[4, 4]; int i, j; Console.Write("\n\n INDICES \n\n"); for(i = 0 ; i <= 3 ; i++) { for(j = 0 ; j <= 3 ; j++) { Console.Write("\t" + i + ", " + j); }//fin del ciclo for de j Console.Write("\n"); }//fin del ciclo for de i //////////////////////////////////////////////////////// //-----LLENANDO EL ARREGLO----------------------------// //////////////////////////////////////////////////////// Console.Write("\n\n LLENADO DEL ARREGLO \n\n"); for (i = 0; i <= 3; i++) { for (j = 0; j <= 3; j++) { Console.Write("\t" + i + ", " + j + " = "); arreglo2d[i,j] = Convert.ToInt32(Console.ReadLine()); }//fin del ciclo for de j }//fin del ciclo for de i //////////////////////////////////////////////////////// //-----IMPRESION EL ARREGLO---------------------------// //////////////////////////////////////////////////////// Console.Write("\n\n IMPRESION DEL ARREGLO \n\n"); for (i = 0; i <= 3; i++) { for (j = 0; j <= 3; j++) { Console.Write(arreglo2d[i,j] + "\t"); }//fin del ciclo for de j Console.Write("\n"); }//fin del ciclo for de i Console.ReadKey(); } } }
Editor Settings
Theme
Key bindings
Full width
Lines