Advertisement
Guest User

Untitled

a guest
Jan 29th, 2020
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.83 KB | None | 0 0
  1. using System;
  2.  
  3. namespace ConsoleApplication5
  4. {
  5.     class Program : ICloneable
  6.     {
  7.         public static void Main(string[] args)
  8.         {
  9.             {
  10.                 int[][] a = new int[][]
  11.                 {
  12.                     new int[] {0, 0},
  13.                     new int[] {1, 2},
  14.                     new int[] {2, 4},
  15.                     new int[] {3, 6}
  16.                 };
  17.                 // Wypisanie wszystkich elementów w konsoli
  18.                 for (int i = 0; i < 4; i++)
  19.                 {
  20.                     for (int j = 0; j < 2; j++)
  21.                     {
  22.                         Console.WriteLine("a[{0}, {1}] = {2}", i, j, a[i][j]);
  23.                     }
  24.                 }
  25.  
  26.  
  27.                 object Clone()
  28.                 {
  29.                     return a;
  30.                 }
  31.             }
  32.         }
  33.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement