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;
- namespace ArrayofElements
- {
- class Program
- {
- static void Main(string[] args)
- {
- int [][] a = new int[][]{new int[]{1, 1, 1, 1, 1}, new int[]{1, 1, 1, 1},new int[]{1, 1, 1},new int[]{1, 1}, new int[]{1}};
- for (int i = 0; i < a.Length; i++)
- {
- for (int j = 0; j < a[i].Length; j++)
- {
- Console.Write("{0} ", a[i][j]);
- }
- Console.Write("\n");
- }
- Console.Read();
- }
- }
- }
Add Comment
Please, Sign In to add comment