Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace JaggedArray
- {
- class Program
- {
- static void Main(string[] args)
- {
- int[][] jaggedArray =
- {
- new int [] {1,2},
- new int [] {3,4,5,6},
- new int[] {7,6,7,90,11,12,},
- new int[] {1,2,3,8,5,9,7,6,3,4,8},
- };
- for (int row = 0; row < jaggedArray.Length; row++)
- {
- for (int col = 0; col < jaggedArray[row].Length; col++)
- {
- Console.Write(jaggedArray[row][col] + " ");
- }
- Console.WriteLine();
- }
- }
- }
- }
Add Comment
Please, Sign In to add comment