Skip to content

Instantly share code, notes, and snippets.

@kg
Created May 3, 2011 06:59
Show Gist options
  • Save kg/952928 to your computer and use it in GitHub Desktop.
Save kg/952928 to your computer and use it in GitHub Desktop.
// yhlqss0l, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
Program = {};
Program.Main = function (args) {
a = JSIL.JaggedArray.New(System.String, 5, 10);
h = a.GetLength(0);
w = a.GetLength(1);
y = 0;
while ((y < h)) {
x = 0;
while ((x < w)) {
a.Set(y, x, System.String.Format("x={0}, y={1}", x, y));
x = (x + 1);
}
y = (y + 1);
}
array = a;
upperBound = array.GetUpperBound(0);
upperBound2 = array.GetUpperBound(1);
num = array.GetLowerBound(0);
while (!(num > upperBound)) {
num2 = array.GetLowerBound(1);
while (!(num2 > upperBound2)) {
s = array.Get(num, num2);
System.Console.WriteLine(s);
num2 = (num2 + 1);
}
num = (num + 1);
}
};
timeout(30); Program.Main([]);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment