Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ssougnez/ac1d38456fbeddd39da32e48a774edad to your computer and use it in GitHub Desktop.
Save ssougnez/ac1d38456fbeddd39da32e48a774edad to your computer and use it in GitHub Desktop.
static void Square(int length)
{
var array = new int[length];
for (int i = 0; i < length; ++i)
{
array[i] = i * i;
}
for (int i = 0; i < length; ++i)
{
Console.WriteLine(array[i]);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment