Advertisement
Guest User

Untitled

a guest
Jan 29th, 2020
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.81 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.             Console.ReadLine();
  10.         }
  11.  
  12.         public object Clone()
  13.         {
  14.            
  15.                 int[][] a = new int[][]
  16.                 {
  17.                     new int[] {0, 0},
  18.                     new int[] {1, 2},
  19.                     new int[] {2, 4},
  20.                     new int[] {3, 6}
  21.                 };
  22.                
  23.                 for (int i = 0; i < 4; i++)
  24.                 {
  25.                     for (int j = 0; j < 2; j++)
  26.                     {
  27.                         Console.WriteLine(format: "a[{0}, {1}] = {2}", arg0: i, arg1: j, arg2: a[index0: i][index0: j]);
  28.                     }
  29.                 }
  30.            
  31.         }
  32.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement