Last active
June 13, 2018 16:41
-
-
Save ssougnez/ac1d38456fbeddd39da32e48a774edad to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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