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 two_dimesional_array_2
- {
- class Program
- {
- static void Main(string[] args)
- {
- int[,] myIntArray = new int[2, 2]
- {
- {1,2},
- {9,3}
- };
- myIntArray[1, 0] = 2;
- int element = myIntArray[1, 0]; // от 9 става 2
- Console.WriteLine("Element [1,0] = {0}",element); // 2
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment