Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- static void Main(string[] args)
- {
- int[,] zweiDimArray = new int[10, 10];
- int start = 1;
- for(int i = 1; i < zweiDimArray.GetLength(0); i++)
- {
- for(int j = 0; j < zweiDimArray.GetLength(1);j++)
- {
- zweiDimArray[i, j] = start;
- start++;
- }
- }
- for (int i = 1; i < zweiDimArray.GetLength(0); i++)
- {
- for (int j = 0; j < zweiDimArray.GetLength(1); j++)
- {
- Console.Write(" " + zweiDimArray[i,j] + " ");
- }
- Console.WriteLine();
- }
- Console.ReadKey();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement