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 CreatingMultidimensionalArray
- {
- class Program
- {
- static void Main(string[] args)
- {
- int[,] myIntArray = new int[3, 2]
- {
- {1,2},
- {2,3},
- {4,1},
- };
- int[,] intMatrix =
- {
- {1, 3, 6, 2}, //row 0 values
- {8, 5, 9, 1}, //row 1 values
- {4, 7, 3, 0} //row 2 values
- }; //The matrix size is 3 x 4 (3 rows, 4 columns)
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment