SHARE
TWEET

Untitled

a guest Feb 27th, 2020 86 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. static void Main(string[] args)
  2.         {
  3.             int[,] zweiDimArray = new int[10, 10];
  4.             int start = 1;
  5.  
  6.             for(int i = 1; i < zweiDimArray.GetLength(0); i++)
  7.             {
  8.                 for(int j = 0; j < zweiDimArray.GetLength(1);j++)
  9.                 {
  10.                     zweiDimArray[i, j] = start;
  11.                     start++;
  12.                 }  
  13.             }
  14.  
  15.             for (int i = 1; i < zweiDimArray.GetLength(0); i++)
  16.             {
  17.                 for (int j = 0; j < zweiDimArray.GetLength(1); j++)
  18.                 {
  19.                     Console.Write(" " + zweiDimArray[i,j] + " ");
  20.                 }
  21.                 Console.WriteLine();
  22.             }
  23.  
  24.             Console.ReadKey();
  25.  
  26.  
  27.         }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top