< C Sharp for Beginners
using System;
Public Class TwoD {
public static void Main(string [] args) { int[,]a = int[2,2]; int i,j; Console.WriteLine("Enter elements in the array:"); for(i=0;i<2;i++) { for(j=0;j<2;j++) { a[i,j]=Convert.ToInt32(Console.ReadLine()); } } }
}
This article is issued from Wikibooks. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.