Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace TwoDimensionArr
- {
- class TwoDimenArr
- {
- static void Main()
- {
- int[,] numbers = new int[,]
- {
- {1,2},
- {3,4},
- };
- for (int i = 0; i < numbers.GetLength(0); i++)
- {
- int first = numbers[i, 0];
- int second = numbers[i, 1];
- Console.WriteLine("{0},{1}",first,second);
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment