fork download
  1. using System;
  2.  
  3. public class Test
  4. {
  5. public static void Main()
  6. {
  7. var grid = (int[,])Array.CreateInstance(typeof(int),new[] {7,7}, new[] {-3,-3});
  8. for (int r = -3 ; r <= 3 ; r++) {
  9. for (int c = -3 ; c <= 3 ; c++) {
  10. grid[r,c] = 10+r + c;
  11. }
  12. }
  13. }
  14. }
Success #stdin #stdout 0.01s 33600KB
stdin
Standard input is empty
stdout
Standard output is empty