Guest User

Untitled

a guest
Mar 21st, 2018
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5.  
  6. namespace ArrayofElements
  7. {
  8. class Program
  9. {
  10. static void Main(string[] args)
  11. {
  12. 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}};
  13. for (int i = 0; i < a.Length; i++)
  14. {
  15. for (int j = 0; j < a[i].Length; j++)
  16.  
  17. {
  18. Console.Write("{0} ", a[i][j]);
  19. }
  20. Console.Write("\n");
  21.  
  22. }
  23. Console.Read();
  24. }
  25. }
  26. }
Add Comment
Please, Sign In to add comment